mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 04:15:07 +07:00
f6ad6accaa
So far, all BPF tc tunnel testcases encapsulate in the same network protocol. Add an encap testcase that requires updating skb->protocol. The 6in4 tunnel encapsulates an IPv6 packet inside an IPv4 tunnel. Verify that bpf_skb_net_grow correctly updates skb->protocol to select the right protocol handler in __netif_receive_skb_core. The BPF program should also manually update the link layer header to encode the right network protocol. Changes v1->v2 - improve documentation of non-obvious logic Signed-off-by: Willem de Bruijn <willemb@google.com> Tested-by: Alan Maguire <alan.maguire@oracle.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
37 lines
737 B
Plaintext
37 lines
737 B
Plaintext
CONFIG_BPF=y
|
|
CONFIG_BPF_SYSCALL=y
|
|
CONFIG_NET_CLS_BPF=m
|
|
CONFIG_BPF_EVENTS=y
|
|
CONFIG_TEST_BPF=m
|
|
CONFIG_CGROUP_BPF=y
|
|
CONFIG_NETDEVSIM=m
|
|
CONFIG_NET_CLS_ACT=y
|
|
CONFIG_NET_SCHED=y
|
|
CONFIG_NET_SCH_INGRESS=y
|
|
CONFIG_NET_IPIP=y
|
|
CONFIG_IPV6=y
|
|
CONFIG_NET_IPGRE_DEMUX=y
|
|
CONFIG_NET_IPGRE=y
|
|
CONFIG_IPV6_GRE=y
|
|
CONFIG_CRYPTO_USER_API_HASH=m
|
|
CONFIG_CRYPTO_HMAC=m
|
|
CONFIG_CRYPTO_SHA256=m
|
|
CONFIG_VXLAN=y
|
|
CONFIG_GENEVE=y
|
|
CONFIG_NET_CLS_FLOWER=m
|
|
CONFIG_LWTUNNEL=y
|
|
CONFIG_BPF_STREAM_PARSER=y
|
|
CONFIG_XDP_SOCKETS=y
|
|
CONFIG_FTRACE_SYSCALLS=y
|
|
CONFIG_IPV6_TUNNEL=y
|
|
CONFIG_IPV6_GRE=y
|
|
CONFIG_NET_FOU=m
|
|
CONFIG_NET_FOU_IP_TUNNELS=y
|
|
CONFIG_IPV6_FOU=m
|
|
CONFIG_IPV6_FOU_TUNNEL=m
|
|
CONFIG_MPLS=y
|
|
CONFIG_NET_MPLS_GSO=m
|
|
CONFIG_MPLS_ROUTING=m
|
|
CONFIG_MPLS_IPTUNNEL=m
|
|
CONFIG_IPV6_SIT=m
|