linux/drivers/net/ethernet/mellanox/mlxsw
Petr Machata de0f43c01a mlxsw: spectrum_router: Track RIF of IPIP next hops
When considering whether to set RTNH_F_OFFLOAD flag on an IPv6 route,
mlxsw_sp_fib6_entry_offload_set() looks up the mlxsw_sp_nexthop
corresponding to a given route, and decides based on whether the next
hop's offloaded flag was set. When looking for the matching next hop, it
also takes into account the device of the route, which must match next
hop's RIF.

IPIP next hops however hitherto didn't set the RIF. As a result, IPv6
routes forwarding traffic to IP-in-IP netdevices are never marked as
offloaded, even when they actually are.

Thus track RIF of IPIP next hops the same way as that of ETHERNET next
hops.

Fixes: 8f28a30976 ("mlxsw: spectrum_router: Support IPv6 overlay encap")
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>
2017-10-02 11:18:57 -07:00
..
cmd.h
core_acl_flex_actions.c
core_acl_flex_actions.h
core_acl_flex_keys.c
core_acl_flex_keys.h mlxsw: acl: Add ip tos acl element 2017-07-17 09:18:23 -07:00
core_hwmon.c
core_thermal.c
core.c mlxsw: core: Use correct EMAD transaction ID in debug message 2017-08-02 16:58:49 -07:00
core.h
emad.h
i2c.c
i2c.h
ib.h
item.h
Kconfig mlxsw: spectrum_router: Add support for IPv6 routes addition / deletion 2017-08-03 15:36:00 -07:00
Makefile mlxsw: spectrum_router: Add mlxsw_sp_ipip_ops 2017-09-03 20:23:25 -07:00
minimal.c
pci_hw.h
pci.c
pci.h
port.h
reg.h mlxsw: reg: Give mlxsw_reg_ratr_pack a type parameter 2017-09-03 20:23:25 -07:00
resources.h
spectrum_acl_flex_keys.h mlxsw: spectrum: Add tos to the ipv4 acl block 2017-07-17 09:18:23 -07:00
spectrum_acl_tcam.c mlxsw: spectrum_acl: Allow to get group_id value for a ruleset 2017-08-23 20:44:32 -07:00
spectrum_acl.c mlxsw: spectrum_acl: Provide helper to lookup ruleset 2017-08-23 20:44:32 -07:00
spectrum_buffers.c
spectrum_cnt.c
spectrum_cnt.h
spectrum_dcb.c
spectrum_dpipe.c mlxsw: spectrum_dpipe: Add support for controlling IPv6 neighbor counters 2017-08-31 14:42:19 -07:00
spectrum_dpipe.h mlxsw: spectrum_dpipe: Add IPv6 host table initial support 2017-08-31 14:42:19 -07:00
spectrum_fid.c mlxsw: spectrum: Improve IPv6 unregistered multicast flooding 2017-07-17 09:19:39 -07:00
spectrum_flower.c mlxsw: spectrum_flower: Offload goto_chain termination action 2017-08-23 20:44:32 -07:00
spectrum_ipip.c mlxsw: spectrum_router: Support GRE tunnels 2017-09-03 20:23:26 -07:00
spectrum_ipip.h mlxsw: spectrum_router: Support GRE tunnels 2017-09-03 20:23:26 -07:00
spectrum_kvdl.c
spectrum_router.c mlxsw: spectrum_router: Track RIF of IPIP next hops 2017-10-02 11:18:57 -07:00
spectrum_router.h mlxsw: spectrum_router: Support GRE tunnels 2017-09-03 20:23:26 -07:00
spectrum_switchdev.c mlxsw: spectrum_switchdev: Fix mrouter flag update 2017-08-22 14:22:54 -07:00
spectrum.c mlxsw: spectrum: Prevent mirred-related crash on removal 2017-09-12 20:42:29 -07:00
spectrum.h mlxsw: spectrum_router: Introduce loopback RIFs 2017-09-03 20:23:25 -07:00
switchib.c mlxsw: make mlxsw_config_profile const 2017-08-11 14:57:04 -07:00
switchx2.c mlxsw: make mlxsw_config_profile const 2017-08-11 14:57:04 -07:00
trap.h mlxsw: spectrum: Register for IPIP_DECAP_ERROR trap 2017-09-03 20:23:26 -07:00
txheader.h