diff options
| author | Saeed Mahameed <[email protected]> | 2019-08-17 09:48:55 +0000 |
|---|---|---|
| committer | Saeed Mahameed <[email protected]> | 2022-02-23 23:21:59 +0000 |
| commit | f086470122d567025303e2361b57e2f8172af201 (patch) | |
| tree | 8e1416b4c5b0b3ccff07f3334b2d2ab20cdfe4de /drivers/infiniband/hw/mlx5/devx.c | |
| parent | net/mlx5: Lag, offload active-backup drops to hardware (diff) | |
| download | kernel-f086470122d567025303e2361b57e2f8172af201.tar.gz kernel-f086470122d567025303e2361b57e2f8172af201.zip | |
net/mlx5: cmdif, Return value improvements
Make sure that the two basic command interface functions cmd_exec and
cmd_invoke will return well defined return values:
return < 0 : Command execution couldn't be submitted by driver
return > 0 : Command execution couldn't be performed by firmware
return = 0 : Command was executed by FW, Caller must check FW
outbox status.
These statuses are valid for the blocking call of cmd_exec() e.g. when
callback == NULL, in a downstream patch, will refactor the code to
provide the same return value semantics to the callback.
Signed-off-by: Saeed Mahameed <[email protected]>
Reviewed-by: Moshe Shemesh <[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
