aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-09-13 17:51:13 +0000
committerRoland Dreier <rolandd@cisco.com>2006-11-09 19:57:02 -0800
commit7eba83c003c6850cb3e970fd67ff33a19674ed41 (patch)
tree30787de8712a2e8bc2bd10554171e02ac2856146
parent03cce79a860f8ba6980bf57349d300fc011cac18 (diff)
downloadlibmthca-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qp.c b/src/qp.c
index a328c13..efbcef2 100644
--- a/src/qp.c
+++ b/src/qp.c
@@ -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;
}