Skip to contentSkip to conversation

RDMA/efa: Use the correct current and new states in modify QP

PATCH Applied Gal Pressman 2 participants 2 messages Dec 1, 2020 – Dec 2, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 40909f664d27 ("RDMA/efa: Add EFA verbs implementation")
---
 drivers/infiniband/hw/efa/efa_verbs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/efa/efa_verbs.c +2 -2
index 191e0843f090..4e940fc50bba 100644
@@ -940,8 +940,8 @@ int efa_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr,
 			1);
 		EFA_SET(&params.modify_mask,
 			EFA_ADMIN_MODIFY_QP_CMD_CUR_QP_STATE, 1);
-		params.cur_qp_state = qp_attr->cur_qp_state;
-		params.qp_state = qp_attr->qp_state;
+		params.cur_qp_state = cur_state;
+		params.qp_state = new_state;
 	}
 
 	if (qp_attr_mask & IB_QP_EN_SQD_ASYNC_NOTIFY) {

base-commit: 17475e104dcb74217c282781817f8f52b46130d3

Signature · 1 line
2.29.2
maintainer Applied
#1 lore raw
Quoted 11 lines · Gal Pressman

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 40909f664d27 ("RDMA/efa: Add EFA verbs implementation")
---
 drivers/infiniband/hw/efa/efa_verbs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to for-rc, thanks

Jason