aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@mellanox.co.il>2005-11-29 17:03:17 +0000
committerRoland Dreier <rolandd@cisco.com>2006-11-09 19:57:04 -0800
commit2ef11fb07a1c6152bb7a921927ed9d3fad95e3f4 (patch)
tree7fd871a7bbe8b5482d53d42970ba3992c08147de
parentc2623102f3e38e7684e435b77403d16dc6ddb585 (diff)
downloadlibmthca-2ef11fb07a1c6152bb7a921927ed9d3fad95e3f4.tar.gz
Fix posting receive work request lists of length > 255 on Tavor
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--ChangeLog6
-rw-r--r--src/qp.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f2110d9..078ee26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-29 Michael S. Tsirkin <mst@mellanox.co.il>
+
+ * src/qp.c (mthca_tavor_post_recv): Fix posting long receive
+ lists: nreq is set to zero early on, so we need to use
+ MTHCA_TAVOR_MAX_WQES_PER_RECV_DB as the increment to rq.head.
+
2005-11-28 Roland Dreier <roland@cisco.com>
* src/qp.c (mthca_init_qp_indices): Set qp->sq.last and
diff --git a/src/qp.c b/src/qp.c
index 781850e..b06213a 100644
--- a/src/qp.c
+++ b/src/qp.c
@@ -345,7 +345,7 @@ int mthca_tavor_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
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;
}