Similar to geneve, vxlan, gre tunnels implement 'collect metadata' mode in ipip, ipip6, ip6ip6 tunnels.
Alexei Starovoitov (4): ip_tunnel: add collect_md mode to IPIP tunnel ip6_tunnel: add collect_md mode to IPv6 tunnels samples/bpf: extend test_tunnel_bpf.sh with IPIP test samples/bpf: add comprehensive ipip, ipip6, ip6ip6 test include/net/ip6_tunnel.h | 1 + include/net/ip_tunnels.h | 2 + include/uapi/linux/if_tunnel.h | 1 + net/ipv4/ip_tunnel.c | 76 +++++++++++++++++ net/ipv4/ipip.c | 35 ++++++-- net/ipv6/ip6_tunnel.c | 178 ++++++++++++++++++++++++++++---------- samples/bpf/tcbpf2_kern.c | 190 +++++++++++++++++++++++++++++++++++++++++ samples/bpf/test_ipip.sh | 178 ++++++++++++++++++++++++++++++++++++++ samples/bpf/test_tunnel_bpf.sh | 56 ++++++++++-- 9 files changed, 658 insertions(+), 59 deletions(-) create mode 100755 samples/bpf/test_ipip.sh -- 2.8.0