[PATCH] IB/ipath: fixes to performance get counters for IB compliance
This patch fixes some problems uncovered during IB compliance testing to return the right values for error counters returned by the Performance Get Counters packet. Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com> Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com> Cc: "Michael S. Tsirkin" <mst@mellanox.co.il> Cc: Roland Dreier <rolandd@cisco.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Linus Torvalds

vecāks
85322947d7
revīzija
fba75200ad
@@ -560,7 +560,16 @@ void ipath_ud_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr,
|
||||
spin_lock_irqsave(&rq->lock, flags);
|
||||
if (rq->tail == rq->head) {
|
||||
spin_unlock_irqrestore(&rq->lock, flags);
|
||||
dev->n_pkt_drops++;
|
||||
/*
|
||||
* 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->rcv_errors++;
|
||||
goto bail;
|
||||
}
|
||||
/* Silently drop packets which are too big. */
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user