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)
commit8c22ad36eefa5e1c4af0d653d385041527d7b7b9
treef79920809d3f2c7b62b0cd0b55532df784684f23
parent89212e160b81e778f829b89743570665810e3b13
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