]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[MTHCA] bugfix: using wrong QP state literals
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 14 Dec 2006 18:13:17 +0000 (18:13 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 14 Dec 2006 18:13:17 +0000 (18:13 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@563 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/hw/mthca/kernel/mthca_qp.c

index f263049590f684d414b0259acc8cf2391e04f4e9..03f92492a8cabb4cd959b59d714e19b5aa0ce7a6 100644 (file)
@@ -800,7 +800,7 @@ int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask)
                qp_context->srqn = cl_hton32(1 << 24 |
                                               to_msrq(ibqp->srq)->srqn);
 
-       if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD  &&
+       if (cur_state == IBQPS_RTS && new_state == IBQPS_SQD    &&
            attr_mask & IB_QP_EN_SQD_ASYNC_NOTIFY               &&
            attr->en_sqd_async_notify)
                sqd_event = (u32)(1 << 31);
@@ -852,7 +852,7 @@ int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask)
         * If we moved a kernel QP to RESET, clean up all old CQ
         * entries and reinitialize the QP.
         */
-       if (new_state == IB_QPS_RESET && !qp->ibqp.ucontext) {
+       if (new_state == IBQPS_RESET && !qp->ibqp.ucontext) {
                mthca_cq_clean(dev, to_mcq(qp->ibqp.send_cq)->cqn, qp->qpn,
                               qp->ibqp.srq ? to_msrq(qp->ibqp.srq) : NULL);
                if (qp->ibqp.send_cq != qp->ibqp.recv_cq)