diff options
author | Roland Dreier <rolandd@cisco.com> | 2005-09-13 17:51:13 +0000 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-09 19:57:02 -0800 |
commit | 7eba83c003c6850cb3e970fd67ff33a19674ed41 (patch) | |
tree | 30787de8712a2e8bc2bd10554171e02ac2856146 | |
parent | 03cce79a860f8ba6980bf57349d300fc011cac18 (diff) | |
download | libmthca-7eba83c003c6850cb3e970fd67ff33a19674ed41.tar.gz |
Fix initialization of rq->last
rq->last should come from index rq->max - 1 (not sq->max - 1).
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | src/qp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -762,7 +762,7 @@ int mthca_alloc_qp_buf(struct ibv_pd *pd, struct ibv_qp_cap *cap, } qp->sq.last = get_send_wqe(qp, qp->sq.max - 1); - qp->rq.last = get_recv_wqe(qp, qp->sq.max - 1); + qp->rq.last = get_recv_wqe(qp, qp->rq.max - 1); return 0; } |