mirror of https://gitee.com/openkylin/linux.git
net/mlx5: Add memic command opcode to command checker
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 <lariel@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
This commit is contained in:
parent
aa7e80b220
commit
09adbb5dd0
|
@ -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_DEALLOC_MODIFY_HEADER_CONTEXT:
|
||||||
case MLX5_CMD_OP_FPGA_DESTROY_QP:
|
case MLX5_CMD_OP_FPGA_DESTROY_QP:
|
||||||
case MLX5_CMD_OP_DESTROY_GENERAL_OBJECT:
|
case MLX5_CMD_OP_DESTROY_GENERAL_OBJECT:
|
||||||
|
case MLX5_CMD_OP_DEALLOC_MEMIC:
|
||||||
return MLX5_CMD_STAT_OK;
|
return MLX5_CMD_STAT_OK;
|
||||||
|
|
||||||
case MLX5_CMD_OP_QUERY_HCA_CAP:
|
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_CREATE_GENERAL_OBJECT:
|
||||||
case MLX5_CMD_OP_MODIFY_GENERAL_OBJECT:
|
case MLX5_CMD_OP_MODIFY_GENERAL_OBJECT:
|
||||||
case MLX5_CMD_OP_QUERY_GENERAL_OBJECT:
|
case MLX5_CMD_OP_QUERY_GENERAL_OBJECT:
|
||||||
|
case MLX5_CMD_OP_ALLOC_MEMIC:
|
||||||
*status = MLX5_DRIVER_STATUS_ABORTED;
|
*status = MLX5_DRIVER_STATUS_ABORTED;
|
||||||
*synd = MLX5_DRIVER_SYND;
|
*synd = MLX5_DRIVER_SYND;
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
@ -617,6 +619,8 @@ const char *mlx5_command_str(int command)
|
||||||
MLX5_COMMAND_STR_CASE(MODIFY_GENERAL_OBJECT);
|
MLX5_COMMAND_STR_CASE(MODIFY_GENERAL_OBJECT);
|
||||||
MLX5_COMMAND_STR_CASE(QUERY_GENERAL_OBJECT);
|
MLX5_COMMAND_STR_CASE(QUERY_GENERAL_OBJECT);
|
||||||
MLX5_COMMAND_STR_CASE(QUERY_MODIFY_HEADER_CONTEXT);
|
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";
|
default: return "unknown command opcode";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue