| Subject | [PATCH 30 of 53] ipath - count VL15 packet drops due to bad VL or lack of buffers | Date | Fri, 12 May 2006 16:43:15 -0700 | From | Bryan O'Sullivan <> |
| |
Signed-off-by: Bryan O'Sullivan <bos@pathscale.com>
diff -r 23519e578bf0 -r b098b021b6fd drivers/infiniband/hw/ipath/ipath_ud.c --- a/drivers/infiniband/hw/ipath/ipath_ud.c Fri May 12 15:55:28 2006 -0700 +++ b/drivers/infiniband/hw/ipath/ipath_ud.c Fri May 12 15:55:28 2006 -0700 @@ -554,11 +554,16 @@ void ipath_ud_rcv(struct ipath_ibdev *de spin_lock_irqsave(&rq->lock, flags); if (rq->tail == rq->head) { spin_unlock_irqrestore(&rq->lock, flags); - /* Count VL15 packets dropped due to no receive buffer */ + /* + * Count VL15 packets dropped due to no receive buffer. + * Otherwise, count them as buffer overruns since usually, + * the HW will be able to receive packets even if there are + * no QPs with posted receive buffers. + */ if (qp->ibqp.qp_num == 0) dev->n_vl15_dropped++; else - dev->n_pkt_drops++; + dev->rcv_errors++; goto bail; } /* Silently drop packets which are too big. */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|