]> 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)
commitd26c98b3a836ae0bcd16bd929248b7082fa82ed4
treef79920809d3f2c7b62b0cd0b55532df784684f23
parenta818575f779e3902d94a3f7282aed043b8080c15
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