Ruxandra Stăncioi 2020-07-17 13:44:01 +00:00 committed by Dmitry Vyukov
parent 327a211f77
commit 20595c07c6
9 changed files with 66 additions and 0 deletions

View File

@ -1000,6 +1000,11 @@ lwtunnel_policy [
# after the kernel fixes the seg6_iptunnel.h uapi header.
# SEG6_IPTUNNEL_SRH nlattr[SEG6_IPTUNNEL_SRH, tuninfo]
#
LWT_BPF_IN nlnest[LWT_BPF_IN, bpf_prog_policy]
LWT_BPF_OUT nlnest[LWT_BPF_OUT, bpf_prog_policy]
LWT_BPF_XMIT nlnest[LWT_BPF_XMIT, bpf_prog_policy]
LWT_BPF_XMIT_HEADROOM nlattr[LWT_BPF_XMIT_HEADROOM, int32[0:LWT_BPF_MAX_HEADROOM]]
RPL_IPTUNNEL_SRH nlattr[RPL_IPTUNNEL_SRH, ipv6_rpl_sr_hdr]
] [varlen]
@ -1028,6 +1033,11 @@ erspan_opt_policy_lwt [
LWTUNNEL_IP_OPT_ERSPAN_HWID nlattr[LWTUNNEL_IP_OPT_ERSPAN_HWID, int8]
] [varlen]
bpf_prog_policy [
LWT_BPF_PROG_FD nlattr[LWT_BPF_PROG_FD, fd_bpf_prog]
LWT_BPF_PROG_NAME nlattr[LWT_BPF_PROG_NAME, string]
] [varlen]
ipv6_rpl_sr_hdr {
nexthdr int8
hdrlen len[parent, int8]

View File

@ -430,6 +430,13 @@ LWTUNNEL_IP_OPT_VXLAN_GBP = 1
LWTUNNEL_IP_SRC = 3
LWTUNNEL_IP_TOS = 5
LWTUNNEL_IP_TTL = 4
LWT_BPF_IN = 1
LWT_BPF_MAX_HEADROOM = 256
LWT_BPF_OUT = 2
LWT_BPF_PROG_FD = 1
LWT_BPF_PROG_NAME = 2
LWT_BPF_XMIT = 3
LWT_BPF_XMIT_HEADROOM = 4
MACVLAN_MACADDR_ADD = 0
MACVLAN_MACADDR_DEL = 1
MACVLAN_MACADDR_FLUSH = 2

View File

@ -430,6 +430,13 @@ LWTUNNEL_IP_OPT_VXLAN_GBP = 1
LWTUNNEL_IP_SRC = 3
LWTUNNEL_IP_TOS = 5
LWTUNNEL_IP_TTL = 4
LWT_BPF_IN = 1
LWT_BPF_MAX_HEADROOM = 256
LWT_BPF_OUT = 2
LWT_BPF_PROG_FD = 1
LWT_BPF_PROG_NAME = 2
LWT_BPF_XMIT = 3
LWT_BPF_XMIT_HEADROOM = 4
MACVLAN_MACADDR_ADD = 0
MACVLAN_MACADDR_DEL = 1
MACVLAN_MACADDR_FLUSH = 2

View File

@ -430,6 +430,13 @@ LWTUNNEL_IP_OPT_VXLAN_GBP = 1
LWTUNNEL_IP_SRC = 3
LWTUNNEL_IP_TOS = 5
LWTUNNEL_IP_TTL = 4
LWT_BPF_IN = 1
LWT_BPF_MAX_HEADROOM = 256
LWT_BPF_OUT = 2
LWT_BPF_PROG_FD = 1
LWT_BPF_PROG_NAME = 2
LWT_BPF_XMIT = 3
LWT_BPF_XMIT_HEADROOM = 4
MACVLAN_MACADDR_ADD = 0
MACVLAN_MACADDR_DEL = 1
MACVLAN_MACADDR_FLUSH = 2

View File

@ -430,6 +430,13 @@ LWTUNNEL_IP_OPT_VXLAN_GBP = 1
LWTUNNEL_IP_SRC = 3
LWTUNNEL_IP_TOS = 5
LWTUNNEL_IP_TTL = 4
LWT_BPF_IN = 1
LWT_BPF_MAX_HEADROOM = 256
LWT_BPF_OUT = 2
LWT_BPF_PROG_FD = 1
LWT_BPF_PROG_NAME = 2
LWT_BPF_XMIT = 3
LWT_BPF_XMIT_HEADROOM = 4
MACVLAN_MACADDR_ADD = 0
MACVLAN_MACADDR_DEL = 1
MACVLAN_MACADDR_FLUSH = 2

View File

@ -430,6 +430,13 @@ LWTUNNEL_IP_OPT_VXLAN_GBP = 1
LWTUNNEL_IP_SRC = 3
LWTUNNEL_IP_TOS = 5
LWTUNNEL_IP_TTL = 4
LWT_BPF_IN = 1
LWT_BPF_MAX_HEADROOM = 256
LWT_BPF_OUT = 2
LWT_BPF_PROG_FD = 1
LWT_BPF_PROG_NAME = 2
LWT_BPF_XMIT = 3
LWT_BPF_XMIT_HEADROOM = 4
MACVLAN_MACADDR_ADD = 0
MACVLAN_MACADDR_DEL = 1
MACVLAN_MACADDR_FLUSH = 2

View File

@ -430,6 +430,13 @@ LWTUNNEL_IP_OPT_VXLAN_GBP = 1
LWTUNNEL_IP_SRC = 3
LWTUNNEL_IP_TOS = 5
LWTUNNEL_IP_TTL = 4
LWT_BPF_IN = 1
LWT_BPF_MAX_HEADROOM = 256
LWT_BPF_OUT = 2
LWT_BPF_PROG_FD = 1
LWT_BPF_PROG_NAME = 2
LWT_BPF_XMIT = 3
LWT_BPF_XMIT_HEADROOM = 4
MACVLAN_MACADDR_ADD = 0
MACVLAN_MACADDR_DEL = 1
MACVLAN_MACADDR_FLUSH = 2

View File

@ -430,6 +430,13 @@ LWTUNNEL_IP_OPT_VXLAN_GBP = 1
LWTUNNEL_IP_SRC = 3
LWTUNNEL_IP_TOS = 5
LWTUNNEL_IP_TTL = 4
LWT_BPF_IN = 1
LWT_BPF_MAX_HEADROOM = 256
LWT_BPF_OUT = 2
LWT_BPF_PROG_FD = 1
LWT_BPF_PROG_NAME = 2
LWT_BPF_XMIT = 3
LWT_BPF_XMIT_HEADROOM = 4
MACVLAN_MACADDR_ADD = 0
MACVLAN_MACADDR_DEL = 1
MACVLAN_MACADDR_FLUSH = 2

View File

@ -430,6 +430,13 @@ LWTUNNEL_IP_OPT_VXLAN_GBP = 1
LWTUNNEL_IP_SRC = 3
LWTUNNEL_IP_TOS = 5
LWTUNNEL_IP_TTL = 4
LWT_BPF_IN = 1
LWT_BPF_MAX_HEADROOM = 256
LWT_BPF_OUT = 2
LWT_BPF_PROG_FD = 1
LWT_BPF_PROG_NAME = 2
LWT_BPF_XMIT = 3
LWT_BPF_XMIT_HEADROOM = 4
MACVLAN_MACADDR_ADD = 0
MACVLAN_MACADDR_DEL = 1
MACVLAN_MACADDR_FLUSH = 2