]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_tunnel: add collect_md mode to IPv6 tunnels
authorAlexei Starovoitov <ast@fb.com>
Thu, 15 Sep 2016 20:00:30 +0000 (13:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Sep 2016 14:13:07 +0000 (10:13 -0400)
commit14c27b7fecb6568b0cf84589de06e1ab23afff71
tree846208f51804a20cb5814eda576b3ba235de52a5
parent9f3fcb26623b67b901750a891a671a81ff1f7fa1
ip6_tunnel: add collect_md mode to IPv6 tunnels

Similar to gre, vxlan, geneve tunnels allow IPIP6 and IP6IP6 tunnels
to operate in 'collect metadata' mode.
Unlike ipv4 code here it's possible to reuse ip6_tnl_xmit() function
for both collect_md and traditional tunnels.
bpf_skb_[gs]et_tunnel_key() helpers and ovs (in the future) are the users.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_tunnel.h
net/ipv6/ip6_tunnel.c