[openib-general] [PATCH] libmthca: fix posting long receive lists on tavor

Michael S. Tsirkin mst at mellanox.co.il
Tue Nov 29 02:31:32 PST 2005


libmthca: fix posting receive work request lists of length > 255 on Tavor.

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

Index: trunk/src/userspace/libmthca/src/qp.c
===================================================================
--- trunk/src/userspace/libmthca/src/qp.c	(revision 4126)
+++ trunk/src/userspace/libmthca/src/qp.c	(working copy)
@@ -327,7 +327,7 @@ int mthca_tavor_post_recv(struct ibv_qp 
 
 			mthca_write64(doorbell, to_mctx(ibqp->context), MTHCA_RECV_DOORBELL);
 
-			qp->rq.head += nreq;
+			qp->rq.head += MTHCA_TAVOR_MAX_WQES_PER_RECV_DB;
 			size0 = 0;
 		}

-- 
MST



More information about the general mailing list