mlxsw: spectrum_router: Remove unlikely user-triggerable warning
Subsystems (3)
PATCH 1/1 mlxsw: spectrum_router: Remove unlikely user-triggerable warning
From: Ido Schimmel <[email protected]>
In case the driver vetoes the addition of an IPv6 multipath route, the IPv6 stack will emit delete notifications for the sibling routes that were already added to the FIB trie. Since these siblings are not present in hardware, a warning will be generated.
Have the driver ignore notifications for routes it does not have.
--- drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +6 -1
@@ -5742,8 +5742,13 @@ static void mlxsw_sp_router_fib6_del(struct mlxsw_sp *mlxsw_sp,if (mlxsw_sp_fib6_rt_should_ignore (rt))return ; +/* Multipath routes are first added to the FIB trie and only then +* notified. If we vetoed the addition, we will get a delete +* notification for a route we do not have. Therefore, do not warn if +* route was not found. +*/ fib6_entry =mlxsw_sp_fib6_entry_lookup (mlxsw_sp, rt); -if (WARN_ON (!fib6_entry)) +if (!fib6_entry)return ;/* If not all the nexthops are deleted, then only reduce the nexthop
Signature · 1 line
2.23.0
David Miller
maintainerFrom: Ido Schimmel <[email protected]>
Date: Mon, 9 Dec 2019 08:55:20 +0200
Quoted 7 lines
From: Ido Schimmel <[email protected]>
In case the driver vetoes the addition of an IPv6 multipath route, the IPv6 stack will emit delete notifications for the sibling routes that were already added to the FIB trie. Since these siblings are not present in hardware, a warning will be generated.
Quoted 5 lines
Have the driver ignore notifications for routes it does not have.
Fixes ebee3cad835f ("ipv6: Add IPv6 multipath notifications for add / replace")Signed-off-by Ido Schimmel <[email protected]>Acked-by Jiri Pirko <[email protected]>
Applied and queued up for v5.3 -stable, thanks.