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)
commit4a2a664ed87962c4ddb806a84b5c9634820bcf55
treec876cefbaa8bde3d00da0a084c805cb8b07a1473
parenta6589155ec9847918e00e7279b8aa6d4c272bea7
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: ad11c4f1d8fd ("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