OSDN Git Service

net/mlx5: cmdif, cmd_check refactoring
authorSaeed Mahameed <saeedm@mellanox.com>
Mon, 6 Apr 2020 00:50:25 +0000 (17:50 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 23 Feb 2022 23:21:59 +0000 (15:21 -0800)
commit605bef0015b163867127202b821dce79804d603d
tree4335e8ddab090d2d5e5433d063f1b0fde54bf9fd
parentf086470122d567025303e2361b57e2f8172af201
net/mlx5: cmdif, cmd_check refactoring

Do not mangle the command outbox in the internal low level cmd_exec and
cmd_invoke functions.

Instead return a proper unique error code and move the driver error
checking to be at a higher level in mlx5_cmd_exec().

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/driver.h