1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI_LWTUNNEL_H_
3 #define _UAPI_LWTUNNEL_H_
5 #include <linux/types.h>
7 enum lwtunnel_encap_types {
15 LWTUNNEL_ENCAP_SEG6_LOCAL,
22 #define LWTUNNEL_ENCAP_MAX (__LWTUNNEL_ENCAP_MAX - 1)
37 #define LWTUNNEL_IP_MAX (__LWTUNNEL_IP_MAX - 1)
44 LWTUNNEL_IP6_HOPLIMIT,
52 #define LWTUNNEL_IP6_MAX (__LWTUNNEL_IP6_MAX - 1)
55 LWTUNNEL_IP_OPTS_UNSPEC,
56 LWTUNNEL_IP_OPTS_GENEVE,
57 LWTUNNEL_IP_OPTS_VXLAN,
58 LWTUNNEL_IP_OPTS_ERSPAN,
59 __LWTUNNEL_IP_OPTS_MAX,
62 #define LWTUNNEL_IP_OPTS_MAX (__LWTUNNEL_IP_OPTS_MAX - 1)
65 LWTUNNEL_IP_OPT_GENEVE_UNSPEC,
66 LWTUNNEL_IP_OPT_GENEVE_CLASS,
67 LWTUNNEL_IP_OPT_GENEVE_TYPE,
68 LWTUNNEL_IP_OPT_GENEVE_DATA,
69 __LWTUNNEL_IP_OPT_GENEVE_MAX,
72 #define LWTUNNEL_IP_OPT_GENEVE_MAX (__LWTUNNEL_IP_OPT_GENEVE_MAX - 1)
75 LWTUNNEL_IP_OPT_VXLAN_UNSPEC,
76 LWTUNNEL_IP_OPT_VXLAN_GBP,
77 __LWTUNNEL_IP_OPT_VXLAN_MAX,
80 #define LWTUNNEL_IP_OPT_VXLAN_MAX (__LWTUNNEL_IP_OPT_VXLAN_MAX - 1)
83 LWTUNNEL_IP_OPT_ERSPAN_UNSPEC,
84 LWTUNNEL_IP_OPT_ERSPAN_VER,
85 LWTUNNEL_IP_OPT_ERSPAN_INDEX,
86 LWTUNNEL_IP_OPT_ERSPAN_DIR,
87 LWTUNNEL_IP_OPT_ERSPAN_HWID,
88 __LWTUNNEL_IP_OPT_ERSPAN_MAX,
91 #define LWTUNNEL_IP_OPT_ERSPAN_MAX (__LWTUNNEL_IP_OPT_ERSPAN_MAX - 1)
100 #define LWT_BPF_PROG_MAX (__LWT_BPF_PROG_MAX - 1)
107 LWT_BPF_XMIT_HEADROOM,
111 #define LWT_BPF_MAX (__LWT_BPF_MAX - 1)
113 #define LWT_BPF_MAX_HEADROOM 256
122 #define LWT_XFRM_MAX (__LWT_XFRM_MAX - 1)
124 #endif /* _UAPI_LWTUNNEL_H_ */