[openib-general] [PATCH] libmthca: fix posting long wqe lists for srq

Michael S. Tsirkin mst at mellanox.co.il
Thu Nov 10 08:24:00 PST 2005


Fix posting long WQE lists for SRQ.

Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

Index: src/userspace/libmthca/src/srq.c
===================================================================
--- src/userspace/libmthca/src/srq.c	(revision 4016)
+++ src/userspace/libmthca/src/srq.c	(working copy)
@@ -99,6 +99,7 @@ int mthca_tavor_post_srq_recv(struct ibv
 
 	for (nreq = 0; wr; ++nreq, wr = wr->next) {
 		if (nreq == MTHCA_TAVOR_MAX_WQES_PER_RECV_DB) {
+			nreq = 0;
 			doorbell[0] = htonl(first_ind << srq->wqe_shift);
 			doorbell[1] = htonl((srq->srqn << 8) | nreq);
 

-- 
MST



More information about the general mailing list