Skip to content

Commit c34c97a

Browse files
Jonathan Lallingerrolandd
authored andcommitted
RDMA/cxgb4: Fix iw_cxgb4 count_rcqes() logic
Fix another place in the code where logic dealing with the t4_cqe was using the wrong QID. This fixes the counting logic so that it tests against the SQ QID instead of the RQ QID when counting RCQES. Signed-off by: Jonathan Lallinger <[email protected]> Signed-off by: Steve Wise <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
1 parent 1ea6b8f commit c34c97a

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/hw/cxgb4

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/cxgb4/cq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ void c4iw_count_rcqes(struct t4_cq *cq, struct t4_wq *wq, int *count)
311311
while (ptr != cq->sw_pidx) {
312312
cqe = &cq->sw_queue[ptr];
313313
if (RQ_TYPE(cqe) && (CQE_OPCODE(cqe) != FW_RI_READ_RESP) &&
314-
(CQE_QPID(cqe) == wq->rq.qid) && cqe_completes_wr(cqe, wq))
314+
(CQE_QPID(cqe) == wq->sq.qid) && cqe_completes_wr(cqe, wq))
315315
(*count)++;
316316
if (++ptr == cq->size)
317317
ptr = 0;

0 commit comments

Comments
 (0)