@@ -289,10 +289,10 @@ const char *mlx5_command_str(int command)
return "TEARDOWN_HCA";
case MLX5_CMD_OP_ENABLE_HCA:
- return "MLX5_CMD_OP_ENABLE_HCA";
+ return "ENABLE_HCA";
case MLX5_CMD_OP_DISABLE_HCA:
- return "MLX5_CMD_OP_DISABLE_HCA";
+ return "DISABLE_HCA";
case MLX5_CMD_OP_QUERY_PAGES:
return "QUERY_PAGES";
@@ -390,6 +390,21 @@ const char *mlx5_command_str(int command)
case MLX5_CMD_OP_RESIZE_SRQ:
return "RESIZE_SRQ";
+ case MLX5_CMD_OP_CREATE_DCT:
+ return "CREATE_DCT";
+
+ case MLX5_CMD_OP_DESTROY_DCT:
+ return "DESTROY_DCT";
+
+ case MLX5_CMD_OP_DRAIN_DCT:
+ return "DRAIN_DCT";
+
+ case MLX5_CMD_OP_QUERY_DCT:
+ return "QUERY_DCT";
+
+ case MLX5_CMD_OP_ARM_DCT_FOR_KEY_VIOLATION:
+ return "ARM_DCT";
+
case MLX5_CMD_OP_ALLOC_PD:
return "ALLOC_PD";
@@ -415,7 +430,7 @@ const char *mlx5_command_str(int command)
return "DEALLOC_XRCD";
case MLX5_CMD_OP_ACCESS_REG:
- return "MLX5_CMD_OP_ACCESS_REG";
+ return "ACCESS_REG";
default: return "unknown command opcode";
}
Add support for DC commands and make a few other minor fixes. Signed-off-by: Eli Cohen <eli@mellanox.com> --- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-)