]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Lag, change multipath and bonding to be mutually exclusive
authorMaor Dickman <maord@nvidia.com>
Thu, 7 Oct 2021 13:05:38 +0000 (16:05 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 20 Oct 2021 17:42:49 +0000 (10:42 -0700)
commit65057dc7de7c3f42a2f4107959a4bf956f082a2a
tree0b3e9de6dd1b1136bdd61872ab70fa98cddbee76
parent964c58a8e7b906004904982a5af1253a414b038e
net/mlx5: Lag, change multipath and bonding to be mutually exclusive

Both multipath and bonding events are changing the HW LAG state
independently.
Handling one of the features events while the other is already
enabled can cause unwanted behavior, for example handling
bonding event while multipath enabled will disable the lag and
cause multipath to stop working.

Fix it by ignoring bonding event while in multipath and ignoring FIB
events while in bonding mode.

Fixes: 228d27b4425e ("net/mlx5e: Activate HW multipath and handle port affinity based on FIB events")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/lag.c
drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c
drivers/net/ethernet/mellanox/mlx5/core/lag_mp.h
include/linux/mlx5/driver.h