]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Lag, refactor disable flow
authorMark Bloch <mbloch@nvidia.com>
Wed, 14 Apr 2021 07:16:40 +0000 (07:16 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 15 Jun 2021 03:57:56 +0000 (20:57 -0700)
commit1a4c72c147883f522489867a8d7d705d061dd87e
treef79920809d3f2c7b62b0cd0b55532df784684f23
parent6f93f97b97919b50273a9972a53b7f9617a92c98
net/mlx5: Lag, refactor disable flow

When a net device is removed (can happen if the PCI function is unbound
from the system) it's not enough to destroy the hardware lag. The system
should recreate the original devices that were present before the lag.
As the same flow is done when a net device is removed from the bond
refactor and reuse the code.

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