]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Check returned value from health recover sequence
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 3 Nov 2020 16:46:31 +0000 (18:46 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 11 Mar 2021 22:35:12 +0000 (14:35 -0800)
commit55058a1ba99ec78caa2ec07b6032b494d08d1d25
tree419241057e10e4f302082a99b9454d87494537a2
parent723763a5d7a0795f5b8f4e120bbe82533cfb8882
net/mlx5: Check returned value from health recover sequence

MLX5_INTERFACE_STATE_UP is far from being reliable check for success to
recover, because it can be changed any time and health logic doesn't
have any locks to protect from it.

The locks are not needed here because health recover is good to have,
but not must to success, so rely on the returned value from the
mlx5_recover_device() as a marker for success/failure.

Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/health.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h