]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Lag, Fix fib_info pointer assignment
authorVlad Buslov <vladbu@nvidia.com>
Mon, 18 Apr 2022 14:32:54 +0000 (17:32 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 4 May 2022 07:00:04 +0000 (00:00 -0700)
commit08ac3aa10f68f14ba848c784cca80032922698a9
treefa1100dcf65f33397122ffc8fee6f746412eb865
parenta791328767a6cd18c72ec2a6171e5e2292dc75d4
net/mlx5e: Lag, Fix fib_info pointer assignment

Referenced change incorrectly sets single path fib_info even when LAG is
not active. Fix it by moving call to mlx5_lag_fib_set() into conditional
that verifies LAG state.

Fixes: 5274cab100ba ("net/mlx5e: Lag, Only handle events from highest priority multipath entry")
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c