diff options
author | Michael S. Tsirkin <mst@mellanox.co.il> | 2005-11-29 17:03:17 +0000 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-09 19:57:04 -0800 |
commit | 2ef11fb07a1c6152bb7a921927ed9d3fad95e3f4 (patch) | |
tree | 7fd871a7bbe8b5482d53d42970ba3992c08147de | |
parent | c2623102f3e38e7684e435b77403d16dc6ddb585 (diff) | |
download | libmthca-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-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/qp.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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 @@ -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; } |