aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
diff options
context:
space:
mode:
authorValentine Fatiev <valentinef@mellanox.com>2019-05-01 11:46:05 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2019-05-17 13:16:47 -0700
commit661f0312eb3e8325e92c4a9c8d5561ed21527257 (patch)
tree3b8dde331b35bec5cb1bdb43f8165def329ea0cb /drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
parentnet/mlx5: Imply MLXFW in mlx5_core (diff)
downloadlinux-dev-661f0312eb3e8325e92c4a9c8d5561ed21527257.tar.xz
linux-dev-661f0312eb3e8325e92c4a9c8d5561ed21527257.zip
net/mlx5: Add meaningful return codes to status_to_err function
Current version of function status_to_err return -1 for any status returned by mlx5_cmd_invoke function. In case status is MLX5_DRIVER_STATUS_ABORTED we should return 0 to the caller as we assume command completed successfully on FW. If error returned we are getting confusing messages in dmesg. In addition, currently returned value -1 is confusing with -EPERM. New implementation actually fix original commit and return meaningful codes for commands delivery status and print message in case of failure. Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: Valentine Fatiev <valentinef@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch.h')
0 files changed, 0 insertions, 0 deletions