Fix posting long WQE lists for SRQ.
Signed-off-by: Michael S. Tsirkin <[EMAIL PROTECTED]>
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
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general