![Petar Penkov](/assets/img/avatar_default.png)
Adds a test that sends different types of packets over multiple tunnels and verifies that valid packets are dissected correctly. To do so, a tc-flower rule is added to drop packets on UDP src port 9, and packets are sent from ports 8, 9, and 10. Only the packets on port 9 should be dropped. Because tc-flower relies on the flow dissector to match flows, correct classification demonstrates correct dissection. Also add support logic to load the BPF program and to inject the test packets. Signed-off-by: Petar Penkov <ppenkov@google.com> Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
22 lines
420 B
Plaintext
22 lines
420 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
|