Skip to contentSkip to conversation

RDMA/mlx5: Add init2init as a modify command

PATCH Applied Leon Romanovsky 2 participants 2 messages May 13, 2020 – May 20, 2020

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

PATCH 1/1 RDMA/mlx5: Add init2init as a modify command

From: Aharon Landau <[email protected]>

Missing INIT2INIT entry in the list of modify commands caused that DEVX applications can't modify QP for this transition state. Add the MLX5_CMD_OP_INIT2INIT_QP opcode to the list of allowed DEVX opcodes.

Fixes e662e14d801b ("IB/mlx5: Add DEVX support for modify and query commands")
---
 drivers/infiniband/hw/mlx5/devx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/infiniband/hw/mlx5/devx.c +1 -0
index e11fa7cde254..3047e7d60a9b 100644
@@ -820,6 +820,7 @@ static bool devx_is_obj_modify_cmd(const void *in)
 	case MLX5_CMD_OP_SET_L2_TABLE_ENTRY:
 	case MLX5_CMD_OP_RST2INIT_QP:
 	case MLX5_CMD_OP_INIT2RTR_QP:
+	case MLX5_CMD_OP_INIT2INIT_QP:
 	case MLX5_CMD_OP_RTR2RTS_QP:
 	case MLX5_CMD_OP_RTS2RTS_QP:
 	case MLX5_CMD_OP_SQERR2RTS_QP:
Signature · 1 line
2.26.2
#1 lore raw
Quoted 7 lines · Leon Romanovsky

From: Aharon Landau <[email protected]>

Missing INIT2INIT entry in the list of modify commands caused that DEVX applications can't modify QP for this transition state. Add the MLX5_CMD_OP_INIT2INIT_QP opcode to the list of allowed DEVX opcodes.

Quoted 7 lines
Fixes e662e14d801b ("IB/mlx5: Add DEVX support for modify and query commands")
---
 drivers/infiniband/hw/mlx5/devx.c | 1 +
 1 file changed, 1 insertion(+)

Applied to for-next, thanks

Jason