diff options
author | Xin Long <lucien.xin@gmail.com> | 2019-11-06 17:01:06 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-06 21:14:21 -0800 |
commit | edf31cbb1502481da181a09148adb33e12599185 (patch) | |
tree | 0a998c4f56a581dc7809645d63fe41881470e9a0 /include/uapi/linux/lwtunnel.h | |
parent | 4ece477870774698e6e73d5821a3dd1605ca123b (diff) | |
download | linux-stable-edf31cbb1502481da181a09148adb33e12599185.tar.gz linux-stable-edf31cbb1502481da181a09148adb33e12599185.tar.bz2 linux-stable-edf31cbb1502481da181a09148adb33e12599185.zip |
lwtunnel: add options setting and dumping for vxlan
Based on the code framework built on the last patch, to
support setting and dumping for vxlan, we only need to
add ip_tun_parse_opts_vxlan() for .build_state and
ip_tun_fill_encap_opts_vxlan() for .fill_encap and
if (tun_flags & TUNNEL_VXLAN_OPT) for .get_encap_size.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/lwtunnel.h')
-rw-r--r-- | include/uapi/linux/lwtunnel.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/uapi/linux/lwtunnel.h b/include/uapi/linux/lwtunnel.h index b595ab219036..638b7b108453 100644 --- a/include/uapi/linux/lwtunnel.h +++ b/include/uapi/linux/lwtunnel.h @@ -51,6 +51,7 @@ enum lwtunnel_ip6_t { enum { LWTUNNEL_IP_OPTS_UNSPEC, LWTUNNEL_IP_OPTS_GENEVE, + LWTUNNEL_IP_OPTS_VXLAN, __LWTUNNEL_IP_OPTS_MAX, }; @@ -67,6 +68,14 @@ enum { #define LWTUNNEL_IP_OPT_GENEVE_MAX (__LWTUNNEL_IP_OPT_GENEVE_MAX - 1) enum { + LWTUNNEL_IP_OPT_VXLAN_UNSPEC, + LWTUNNEL_IP_OPT_VXLAN_GBP, + __LWTUNNEL_IP_OPT_VXLAN_MAX, +}; + +#define LWTUNNEL_IP_OPT_VXLAN_MAX (__LWTUNNEL_IP_OPT_VXLAN_MAX - 1) + +enum { LWT_BPF_PROG_UNSPEC, LWT_BPF_PROG_FD, LWT_BPF_PROG_NAME, |