IB/mlx5: Add DEVX support for modify and query commands
Add support in DEVX for modify and query commands, the required lock is taken (i.e. READ/WRITE) by the KABI infrastructure accordingly. Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
committed by
Jason Gunthorpe
parent
7efce3691d
commit
e662e14d80
@ -429,6 +429,8 @@ static int mlx5_internal_err_ret_value(struct mlx5_core_dev *dev, u16 op,
|
||||
case MLX5_CMD_OP_FPGA_QUERY_QP:
|
||||
case MLX5_CMD_OP_FPGA_QUERY_QP_COUNTERS:
|
||||
case MLX5_CMD_OP_CREATE_GENERAL_OBJECT:
|
||||
case MLX5_CMD_OP_MODIFY_GENERAL_OBJECT:
|
||||
case MLX5_CMD_OP_QUERY_GENERAL_OBJECT:
|
||||
*status = MLX5_DRIVER_STATUS_ABORTED;
|
||||
*synd = MLX5_DRIVER_SYND;
|
||||
return -EIO;
|
||||
@ -603,6 +605,9 @@ const char *mlx5_command_str(int command)
|
||||
MLX5_COMMAND_STR_CASE(FPGA_DESTROY_QP);
|
||||
MLX5_COMMAND_STR_CASE(CREATE_GENERAL_OBJECT);
|
||||
MLX5_COMMAND_STR_CASE(DESTROY_GENERAL_OBJECT);
|
||||
MLX5_COMMAND_STR_CASE(MODIFY_GENERAL_OBJECT);
|
||||
MLX5_COMMAND_STR_CASE(QUERY_GENERAL_OBJECT);
|
||||
MLX5_COMMAND_STR_CASE(QUERY_MODIFY_HEADER_CONTEXT);
|
||||
default: return "unknown command opcode";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user