]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit011fa9b8cebbb243cf587f6d92d15824a23aa1fb
tree2a3b744be202a5e876889c3d38dd79bd3e280c14
parent1a4c72c147883f522489867a8d7d705d061dd87e
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