diff options
| author | Saeed Mahameed <[email protected]> | 2020-04-01 05:03:00 +0000 |
|---|---|---|
| committer | Saeed Mahameed <[email protected]> | 2022-02-23 23:21:59 +0000 |
| commit | 0a41527608e7f3da61e76564f5a8749a1fddc7f1 (patch) | |
| tree | fc7985968180241e2a52cc39fc9dd0bd6937c0b4 /drivers/infiniband/hw/mlx5/devx.c | |
| parent | net/mlx5: Use mlx5_cmd_do() in core create_{cq,dct} (diff) | |
| download | kernel-0a41527608e7f3da61e76564f5a8749a1fddc7f1.tar.gz kernel-0a41527608e7f3da61e76564f5a8749a1fddc7f1.zip | |
net/mlx5: cmdif, Refactor error handling and reporting of async commands
Same as the new mlx5_cmd_do API, report all information to callers and
let them handle the error values and outbox parsing.
The user callback status "work->user_callback(status)" is now similar to
the error rc code returned from the blocking mlx5_cmd_do() version,
and now is defined as follows:
-EREMOTEIO : Command executed by FW, outbox.status != MLX5_CMD_STAT_OK.
Caller must check FW outbox status.
0 : Command execution successful, outbox.status == MLX5_CMD_STAT_OK.
< 0 : Command couldn't execute, FW or driver induced error.
Signed-off-by: Saeed Mahameed <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/devx.c')
0 files changed, 0 insertions, 0 deletions
