Skip to content

Commit 93416ab

Browse files
gal-pressmanjgunthorpe
authored andcommitted
RDMA/efa: Use the correct current and new states in modify QP
The local variables cur_state and new_state hold the state that should be used for the modify QP operation instead of the ones in the ib_qp_attr struct. Fixes: 40909f6 ("RDMA/efa: Add EFA verbs implementation") Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Firas JahJah <[email protected]> Reviewed-by: Yossi Leybovich <[email protected]> Signed-off-by: Gal Pressman <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 0191c27 commit 93416ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/infiniband/hw/efa/efa_verbs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,8 +940,8 @@ int efa_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr,
940940
1);
941941
EFA_SET(&params.modify_mask,
942942
EFA_ADMIN_MODIFY_QP_CMD_CUR_QP_STATE, 1);
943-
params.cur_qp_state = qp_attr->cur_qp_state;
944-
params.qp_state = qp_attr->qp_state;
943+
params.cur_qp_state = cur_state;
944+
params.qp_state = new_state;
945945
}
946946

947947
if (qp_attr_mask & IB_QP_EN_SQD_ASYNC_NOTIFY) {

0 commit comments

Comments
 (0)