]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Lag, Don't skip fib events on current dst
authorVlad Buslov <vladbu@nvidia.com>
Mon, 18 Apr 2022 14:40:37 +0000 (17:40 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 4 May 2022 07:00:04 +0000 (00:00 -0700)
commit23c3637e7b0e85f27e28d48d831755762c1b25d9
treec876cefbaa8bde3d00da0a084c805cb8b07a1473
parent08ac3aa10f68f14ba848c784cca80032922698a9
net/mlx5e: Lag, Don't skip fib events on current dst

Referenced change added check to skip updating fib when new fib instance
has same or lower priority. However, new fib instance can be an update on
same dst address as existing one even though the structure is another
instance that has different address. Ignoring events on such instances
causes multipath LAG state to not be correctly updated.

Track 'dst' and 'dst_len' fields of fib event fib_entry_notifier_info
structure and don't skip events that have the same value of that fields.

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
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.h