]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Lag, use lag lock
authorMark Bloch <mbloch@nvidia.com>
Wed, 15 Dec 2021 06:51:18 +0000 (06:51 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 10 May 2022 05:54:01 +0000 (22:54 -0700)
commitc6a85b7cf2dcc1dae546391f71c49d518f8362a1
tree3187b729ce850f1291c5677218ff437160f703c1
parent608e0740f280c613d3f3df7b9521fd7add2017aa
net/mlx5: Lag, use lag lock

Use a lag specific lock instead of depending on external locks to
synchronise the lag creation/destruction.

With this, taking E-Switch mode lock is no longer needed for syncing
lag logic.

Cleanup any dead code that is left over and don't export functions that
aren't used outside the E-Switch core code.

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