[MTHCA] bugfix: a typo in re-initializing of a QP while moving it to RESET state
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 8 Aug 2006 22:37:52 +0000 (22:37 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 8 Aug 2006 22:37:52 +0000 (22:37 +0000)
Submitted by: Anatoly Lisenko [anatoly4work@gmail.com]

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@446 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mthca/kernel/mthca_qp.c

index 6afc02a..16a0976 100644 (file)
@@ -843,7 +843,7 @@ int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask)
                mthca_wq_init(&qp->sq);
                qp->sq.last = get_send_wqe(qp, qp->sq.max - 1);
                mthca_wq_init(&qp->rq);
-               qp->rq.last = get_send_wqe(qp, qp->rq.max - 1);
+               qp->rq.last = get_recv_wqe(qp, qp->rq.max - 1);
 
                if (mthca_is_memfree(dev)) {
                        *qp->sq.db = 0;