From: leonidk Date: Thu, 14 Dec 2006 18:13:17 +0000 (+0000) Subject: [MTHCA] bugfix: using wrong QP state literals X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=e52ac7e6636991b43b9dc7db4c0d51e5de28cf00;p=~shefty%2Frdma-win.git [MTHCA] bugfix: using wrong QP state literals git-svn-id: svn://openib.tc.cornell.edu/gen1@563 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/hw/mthca/kernel/mthca_qp.c b/trunk/hw/mthca/kernel/mthca_qp.c index f2630495..03f92492 100644 --- a/trunk/hw/mthca/kernel/mthca_qp.c +++ b/trunk/hw/mthca/kernel/mthca_qp.c @@ -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)