summaryrefslogtreecommitdiff
path: root/net/tipc/core.c
diff options
context:
space:
mode:
authorDima Chumak <dchumak@nvidia.com>2021-04-13 22:43:08 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-03 08:59:06 +0200
commitdf61870c4b1d0042028edf7e8330be425e49ee52 (patch)
tree2c6708f87680311ba5ee8012243ecc8e7c3fa7dc /net/tipc/core.c
parent4ce2bf20b4a6e307e114847d60b2bf40a6a1fac0 (diff)
net/mlx5e: Fix multipath lag activation
commit 97817fcc684ed01497bd19d0cd4dea699665b9cf upstream. When handling FIB_EVENT_ENTRY_REPLACE event for a new multipath route, lag activation can be missed if a stale (struct lag_mp)->mfi pointer exists, which was associated with an older multipath route that had been removed. Normally, when a route is removed, it triggers mlx5_lag_fib_event(), which handles FIB_EVENT_ENTRY_DEL and clears mfi pointer. But, if mlx5_lag_check_prereq() condition isn't met, for example when eswitch is in legacy mode, the fib event is skipped and mfi pointer becomes stale. Fix by resetting mfi pointer to NULL every time mlx5_lag_mp_init() is called. Fixes: 544fe7c2e654 ("net/mlx5e: Activate HW multipath and handle port affinity based on FIB events") Signed-off-by: Dima Chumak <dchumak@nvidia.com> Reviewed-by: Roi Dayan <roid@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/tipc/core.c')
0 files changed, 0 insertions, 0 deletions