]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Handle encap to demoted tunnels
authorPetr Machata <petrm@mellanox.com>
Tue, 28 Nov 2017 12:17:13 +0000 (13:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Nov 2017 14:55:47 +0000 (09:55 -0500)
commit59495755736ae4c91176f937497e928cd98eb575
tree49a4f04a8da3d07b1592e70b048f44078b0108d1
parent894b290c089b255755fe8b055da445aaa76bfb55
mlxsw: spectrum_router: Handle encap to demoted tunnels

Some tunnels that are offloadable on their own can nonetheless be
demoted to slow path if their local address is in conflict with that of
another tunnel. When a route is formed for such a tunnel,
mlxsw_sp_nexthop_ipip_init() fails to find the corresponding IPIP entry,
and that triggers a FIB abort.

Resolve the problem by not assuming that a tunnel for which
mlxsw_sp_ipip_ops.can_offload() holds also automatically has an IPIP
entry.

Fixes: ce1ca87d9d84 ("mlxsw: spectrum_router: Onload conflicting tunnels")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c