diff options
author | Petr Machata <petrm@mellanox.com> | 2017-10-16 10:26:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-16 16:30:32 -0400 |
commit | 0063587d358733008423c80302cb7b077be8e237 (patch) | |
tree | b6380b0288520a6f96fccc578f193186d3cfa1da /net/lapb/lapb_timer.c | |
parent | 6698c168bf48cb85505d7f6e77f0091a83aa497e (diff) |
mlxsw: spectrum: Support decap-only IP-in-IP tunnels
Current code for offloading IP-in-IP tunneling assumes that there is no
decap without encap. But that's never true for IPv6 overlays, and is not
true for IPv4 ones either, if net.ipv4.conf.*.rp_filter is unset.
To support decap-only tunnels, an IPIP entry is now created as soon as
an offloadable tunneling device is created. When that netdevice is up'd,
a decap route is looked up and possibly offloaded. Thus decap is not
handled implicitly as part of mlxsw_sp_ipip_entry_get() call anymore,
but needs to be done explicitly after the get, if desired.
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>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions