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
51enum {51enum {
52 LWTUNNEL_IP_OPTS_UNSPEC,52 LWTUNNEL_IP_OPTS_UNSPEC,
53 LWTUNNEL_IP_OPTS_GENEVE,53 LWTUNNEL_IP_OPTS_GENEVE,
54 LWTUNNEL_IP_OPTS_VXLAN,
54 __LWTUNNEL_IP_OPTS_MAX,55 __LWTUNNEL_IP_OPTS_MAX,
55};56};
56 57
@@ -66,6 +67,14 @@ enum { · 9 unmodified lines
66 67
67#define LWTUNNEL_IP_OPT_GENEVE_MAX (__LWTUNNEL_IP_OPT_GENEVE_MAX - 1)68#define LWTUNNEL_IP_OPT_GENEVE_MAX (__LWTUNNEL_IP_OPT_GENEVE_MAX - 1)
68 69
70enum {
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
69enum {78enum {
70 LWT_BPF_PROG_UNSPEC,79 LWT_BPF_PROG_UNSPEC,
71 LWT_BPF_PROG_FD,80 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