net/mlx5: Lag, Don't rescan if the device is going down
authorMark Bloch <mbloch@nvidia.com>
Wed, 14 Apr 2021 07:28:19 +0000 (07:28 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 15 Jun 2021 03:57:56 +0000 (20:57 -0700)
commit8ed19471fdaad266225aa15f8e2626a7a3265504
tree2a3b744be202a5e876889c3d38dd79bd3e280c14
parent8c22ad36eefa5e1c4af0d653d385041527d7b7b9
net/mlx5: Lag, Don't rescan if the device is going down

If MLX5_PRIV_FLAGS_DISABLE_ALL_ADEV is set it means the device is going
down and mlx5_rescan_drivers_locked() shouldn't be called.
With this patch and the previous one in the series, unbinding a PCI
function when its netdev is part of a bond works and leaves the system in a
working state.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lag.c