Add mlx5_cmd_do. Unlike mlx5_cmd_exec, this function will not modify or translate outbox.status. The function will return: return = 0: Command was executed, outbox.status == MLX5_CMD_STAT_OK. return = -EREMOTEIO: Executed, outbox.status != MLX5_CMD_STAT_OK. return < 0: Command execution couldn't be performed by FW or driver. And document other mlx5_cmd_exec functions.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -964,6 +964,8 @@ int mlx5_cmd_exec_cb(struct mlx5_async_ctx *ctx, void *in, int in_size, · 963 unmodified lines | |||
| 964 | void *out, int out_size, mlx5_async_cbk_t callback, | 964 | void *out, int out_size, mlx5_async_cbk_t callback, |
| 965 | struct mlx5_async_work *work); | 965 | struct mlx5_async_work *work); |
| 966 | 966 | ||
| 967 | int mlx5_cmd_do(struct mlx5_core_dev *dev, void *in, int in_size, void *out, int out_size); | ||
| 968 | int mlx5_cmd_check(struct mlx5_core_dev *dev, int err, void *in, void *out); | ||
| 967 | int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out, | 969 | int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out, |
| 968 | int out_size); | 970 | int out_size); |
| 969 | 971 | ||