diff options
author | Alexei Starovoitov | 2016-09-15 22:00:29 +0200 |
---|---|---|
committer | David S. Miller | 2016-09-17 16:13:07 +0200 |
commit | cfc7381b3002756b1dcada32979e942aa3126e31 (patch) | |
tree | 7a048b7bbe3d77d6cc70c235b9fe88b44c861537 /include/uapi | |
parent | l2tp: constify net_device_ops structures (diff) | |
download | kernel-qcow2-linux-cfc7381b3002756b1dcada32979e942aa3126e31.tar.gz kernel-qcow2-linux-cfc7381b3002756b1dcada32979e942aa3126e31.tar.xz kernel-qcow2-linux-cfc7381b3002756b1dcada32979e942aa3126e31.zip |
ip_tunnel: add collect_md mode to IPIP tunnel
Similar to gre, vxlan, geneve tunnels allow IPIP tunnels to
operate in 'collect metadata' mode.
bpf_skb_[gs]et_tunnel_key() helpers can make use of it right away.
ovs can use it as well in the future (once appropriate ovs-vport
abstractions and user apis are added).
Note that just like in other tunnels we cannot cache the dst,
since tunnel_info metadata can be different for every packet.
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>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/if_tunnel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/if_tunnel.h b/include/uapi/linux/if_tunnel.h index 9865c8caedde..18d5dc13985d 100644 --- a/include/uapi/linux/if_tunnel.h +++ b/include/uapi/linux/if_tunnel.h @@ -73,6 +73,7 @@ enum { IFLA_IPTUN_ENCAP_FLAGS, IFLA_IPTUN_ENCAP_SPORT, IFLA_IPTUN_ENCAP_DPORT, + IFLA_IPTUN_COLLECT_METADATA, __IFLA_IPTUN_MAX, }; #define IFLA_IPTUN_MAX (__IFLA_IPTUN_MAX - 1) |