Skip to contentSkip to conversation

IW_CXGB4: Fix iw_cxgb4 recv cqe

PATCH In review Jonathan Lallinger 2 participants 2 messages Oct 13, 2011 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IW_CXGB4: Fix iw_cxgb4 recv cqe

Upon completion of a work request on the recieve queue the IW_CXGB4 driver was incorrectly posting a completion back to the recieve queue instead of the send queue. This resulted in hanging worker threads because they were never notified that the work requests were completed.

This change fixes the logic so that insert_recv_cqe posts to the correct queue.

Signed-off by: Jonathan Lallinger <jonathan-/Yg/[email protected]> Signed-off by: Steve Wise <swise-/Yg/[email protected]>
---

 drivers/infiniband/hw/cxgb4/cq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/infiniband/hw/cxgb4/cq.c +1 -1
index 1720dc7..901c5fb 100644
@@ -185,7 +185,7 @@ static void insert_recv_cqe(struct t4_wq *wq, struct t4_cq *cq)
 				 V_CQE_OPCODE(FW_RI_SEND) |
 				 V_CQE_TYPE(0) |
 				 V_CQE_SWCQE(1) |
-				 V_CQE_QPID(wq->rq.qid));
+				 V_CQE_QPID(wq->sq.qid));
 	cqe.bits_type_ts = cpu_to_be64(V_CQE_GENBIT((u64)cq->gen));
 	cq->sw_queue[cq->sw_pidx] = cqe;
 	t4_swcq_produce(cq);

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to a message not in the archive
Quoted 3 lines · Jonathan Lallinger

Upon completion of a work request on the recieve queue the IW_CXGB4 driver was incorrectly posting a completion back to the recieve queue instead of the send queue

Wait, what?

On a receive completion you want to add a completion to the send queue??

#needbetterchangelog

Thanks,
Roland
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html