]> 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)
commit6e37d02af3b85a1deb8b48fc44148f1e7558d823
tree0b3e9de6dd1b1136bdd61872ab70fa98cddbee76
parent04e03f0c4397d84c4d40f5b9da16a12a73bafb9c
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: 30720fbb02df ("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