[openib-general] [PATCH 30 of 53] ipath - count VL15 packet drops due to bad VL or lack of buffers

Bryan O'Sullivan bos at pathscale.com
Fri May 12 16:43:15 PDT 2006


Signed-off-by: Bryan O'Sullivan <bos at 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. */



More information about the general mailing list