Skip to contentSkip to conversation

IB/mlx5: Fix DEVX support for MLX5_CMD_OP_INIT2INIT_QP command

PATCH Applied Leon Romanovsky 2 participants 2 messages May 27, 2020

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

PATCH 1/1 IB/mlx5: Fix DEVX support for MLX5_CMD_OP_INIT2INIT_QP command

From: Mark Zhang <[email protected]>

The commit citied in the Fixes line wasn't complete and solved only part of the problems. Update the mlx5_ib to properly support MLX5_CMD_OP_INIT2INIT_QP command in the DEVX, that is required when modify the QP tx_port_affinity.

Fixes 819f7427bafd ("RDMA/mlx5: Add init2init as a modify command")
---
 drivers/infiniband/hw/mlx5/devx.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/infiniband/hw/mlx5/devx.c +4 -0
index 3047e7d60a9b..9454a66c12cc 100644
@@ -495,6 +495,10 @@ static u64 devx_get_obj_id(const void *in)
 		obj_id = get_enc_obj_id(MLX5_CMD_OP_CREATE_QP,
 					MLX5_GET(rst2init_qp_in, in, qpn));
 		break;
+	case MLX5_CMD_OP_INIT2INIT_QP:
+		obj_id = get_enc_obj_id(MLX5_CMD_OP_CREATE_QP,
+					MLX5_GET(init2init_qp_in, in, qpn));
+		break;
 	case MLX5_CMD_OP_INIT2RTR_QP:
 		obj_id = get_enc_obj_id(MLX5_CMD_OP_CREATE_QP,
 					MLX5_GET(init2rtr_qp_in, in, qpn));
Signature · 1 line
2.26.2
#1 lore raw
Quoted 7 lines · Leon Romanovsky

From: Mark Zhang <[email protected]>

The commit citied in the Fixes line wasn't complete and solved only part of the problems. Update the mlx5_ib to properly support MLX5_CMD_OP_INIT2INIT_QP command in the DEVX, that is required when modify the QP tx_port_affinity.

Quoted 7 lines
Fixes 819f7427bafd ("RDMA/mlx5: Add init2init as a modify command")
---
 drivers/infiniband/hw/mlx5/devx.c | 4 ++++
 1 file changed, 4 insertions(+)

Applied to for-next, thanks

Jason