RDMA/mlx5: Fix typo when prepare destroy_mkey inbox
Subsystems (2)
PATCH 1/1 RDMA/mlx5: Fix typo when prepare destroy_mkey inbox
From: Mark Zhang <[email protected]>
Set mkey_index to correct place when prepare destroy_mkey inbox, this will fix the following syndrome/
mlx5_core 0000:08:00.0: mlx5_cmd_check:782:(pid 980716): DEALLOC_PD(0x801) op_mod(0x0) failed, status bad resource state(0x9), syndrome (0x31b635)
Fixes 1368ead04c36 ("RDMA/mlx5: Use strict get/set operations for obj_id")
Reviewed-by Ido Kalir <[email protected]>
Reviewed-by Yishai Hadas <[email protected]>
Signed-off-by Mark Zhang <[email protected]>
Signed-off-by Leon Romanovsky <[email protected]>
--- drivers/infiniband/hw/mlx5/devx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mlx5/devx.c +1 -1
@@ -1116,7 +1116,7 @@ static void devx_obj_build_destroy_cmd(void *in, void *out, void *din,case MLX5_CMD_OP_CREATE_MKEY :MLX5_SET (destroy_mkey_in, din, opcode,MLX5_CMD_OP_DESTROY_MKEY ); -MLX5_SET (destroy_mkey_in, in, mkey_index, *obj_id); +MLX5_SET (destroy_mkey_in, din, mkey_index, *obj_id);break ;case MLX5_CMD_OP_CREATE_CQ :MLX5_SET (destroy_cq_in, din, opcode,MLX5_CMD_OP_DESTROY_CQ );
--
2.29.2
Quoted 14 lines · Leon Romanovsky
From: Mark Zhang <[email protected]>
Set
mkey_indexto correct place when preparedestroy_mkeyinbox, this will fix the following syndrome/
mlx5_core0000:08:00.0: mlx5_cmd_check:782:(pid 980716):DEALLOC_PD(0x801)op_mod(0x0)failed, status bad resource state(0x9), syndrome (0x31b635)Fixes 1368ead04c36 ("RDMA/mlx5: Use strict get/set operations for obj_id")Reviewed-by Ido Kalir <[email protected]>Reviewed-by Yishai Hadas <[email protected]>Signed-off-by Mark Zhang <[email protected]>Signed-off-by Leon Romanovsky <[email protected]>
Quoted 3 lines
--- drivers/infiniband/hw/mlx5/devx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-rc thanks
Jason