net/mlx5: Add memic command opcode to command checker
Subsystems (4)
PATCH 1/1 net/mlx5: Add memic command opcode to command checker
From: Ariel Levkovich <[email protected]>
Adding the alloc/dealloc memic FW command opcodes to avoid "unknown command" prints in the command string converter and internal error status handler.
Signed-off-by Ariel Levkovich <[email protected]>
Signed-off-by Leon Romanovsky <[email protected]>
--- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/ethernet/mellanox/mlx5/core/cmd.c +4 -0
@@ -312,6 +312,7 @@ static int mlx5_internal_err_ret_value(struct mlx5_core_dev *dev, u16 op,case MLX5_CMD_OP_DEALLOC_MODIFY_HEADER_CONTEXT :case MLX5_CMD_OP_FPGA_DESTROY_QP :case MLX5_CMD_OP_DESTROY_GENERAL_OBJECT : +case MLX5_CMD_OP_DEALLOC_MEMIC :return MLX5_CMD_STAT_OK ;case MLX5_CMD_OP_QUERY_HCA_CAP :
@@ -435,6 +436,7 @@ static int mlx5_internal_err_ret_value(struct mlx5_core_dev *dev, u16 op,case MLX5_CMD_OP_CREATE_GENERAL_OBJECT :case MLX5_CMD_OP_MODIFY_GENERAL_OBJECT :case MLX5_CMD_OP_QUERY_GENERAL_OBJECT : +case MLX5_CMD_OP_ALLOC_MEMIC : *status =MLX5_DRIVER_STATUS_ABORTED ; *synd =MLX5_DRIVER_SYND ;return -EIO ;
@@ -617,6 +619,8 @@ const char *mlx5_command_str(int command)MLX5_COMMAND_STR_CASE (MODIFY_GENERAL_OBJECT );MLX5_COMMAND_STR_CASE (QUERY_GENERAL_OBJECT );MLX5_COMMAND_STR_CASE (QUERY_MODIFY_HEADER_CONTEXT ); +MLX5_COMMAND_STR_CASE (ALLOC_MEMIC ); +MLX5_COMMAND_STR_CASE (DEALLOC_MEMIC );default :return "unknown command opcode" ; } }
Signature · 1 line
2.14.4
Leon Romanovsky
AppliedQuoted 6 lines · Leon Romanovsky
From: Ariel Levkovich <[email protected]>
Adding the alloc/dealloc memic FW command opcodes to avoid "unknown command" prints in the command string converter and internal error status handler.
Quoted 6 lines
Signed-off-by Ariel Levkovich <[email protected]>Signed-off-by Leon Romanovsky <[email protected]>--- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 4 ++++ 1 file changed, 4 insertions(+)
Applied to mlx5-next: 09adbb5dd01b net/mlx5: Add memic command opcode to command checker
Thanks