summary refs log tree commit diff
path: root/tools/testing/selftests/bpf/config
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2019-04-23 14:43:49 -0400
committerDaniel Borkmann <daniel@iogearbox.net>2019-04-24 01:32:26 +0200
commitf6ad6accaa99dfa7462d18687961b8421d707c1e (patch)
tree017cfbea5a7d5be7c4503bd248b05c0858925d41 /tools/testing/selftests/bpf/config
parent1b00e0dfe7d08a17d818c34d4c9968047a3f3e4b (diff)
downloadlinux-f6ad6accaa99dfa7462d18687961b8421d707c1e.tar.gz
selftests/bpf: expand test_tc_tunnel with SIT encap
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>
Diffstat (limited to 'tools/testing/selftests/bpf/config')
-rw-r--r--tools/testing/selftests/bpf/config1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config
index 8c976476f6fd..f7a0744db31e 100644
--- a/tools/testing/selftests/bpf/config
+++ b/tools/testing/selftests/bpf/config
@@ -33,3 +33,4 @@ CONFIG_MPLS=y
 CONFIG_NET_MPLS_GSO=m
 CONFIG_MPLS_ROUTING=m
 CONFIG_MPLS_IPTUNNEL=m
+CONFIG_IPV6_SIT=m