]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Change ownership model for lag
authorMark Bloch <mbloch@nvidia.com>
Wed, 14 Apr 2021 08:18:09 +0000 (08:18 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 15 Jun 2021 03:57:56 +0000 (20:57 -0700)
commit139a3f1a46ff6c2651c8a6cdf60a13bdb5e973a6
treeacade1e44b702f8beadd5e5ed7c0643228f74999
parent8361bb0f817a2b494757a01d1a99368de4224ebe
net/mlx5: Change ownership model for lag

Lag is used to combine two PCI functions of the same HCA into a single
logical unit. This is a core functionality and as such should be managed by
the core driver. Currently this isn't the case. While we store the lag
software structure inside the lower device, its lifetime (creation /
destruction) is dictated by the mlx5e part. Change the ownership model so
lag is tied to the lifetime of the lower level driver instead to the
mlx5e part.

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