History

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.

Xin Long committed 7 years ago

Commit edf31cb1 parent 4ece4772 files · +74 −2Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/lwtunnel.h+9−0
@@ -51,6 +51,7 @@ enum lwtunnel_ip6_t { · 50 unmodified lines
5151 enum {
5252 LWTUNNEL_IP_OPTS_UNSPEC,
5353 LWTUNNEL_IP_OPTS_GENEVE,
54+ LWTUNNEL_IP_OPTS_VXLAN,
5455 __LWTUNNEL_IP_OPTS_MAX,
5556 };
5657
@@ -66,6 +67,14 @@ enum { · 9 unmodified lines
6667
6768 #define LWTUNNEL_IP_OPT_GENEVE_MAX (__LWTUNNEL_IP_OPT_GENEVE_MAX - 1)
6869
70+enum {
71+ LWTUNNEL_IP_OPT_VXLAN_UNSPEC,
72+ LWTUNNEL_IP_OPT_VXLAN_GBP,
73+ __LWTUNNEL_IP_OPT_VXLAN_MAX,
74+};
75+
76+#define LWTUNNEL_IP_OPT_VXLAN_MAX (__LWTUNNEL_IP_OPT_VXLAN_MAX - 1)
77+
6978 enum {
7079 LWT_BPF_PROG_UNSPEC,
7180 LWT_BPF_PROG_FD,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t