]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: bpf tunnel encap test
authorWillem de Bruijn <willemb@google.com>
Fri, 22 Mar 2019 18:32:49 +0000 (14:32 -0400)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Mar 2019 20:52:44 +0000 (13:52 -0700)
commit7054d70f165250e93d30f2eadf4e9d40823f1b9d
treef3b447a95be388338c2b57c595290d5d817162b2
parent7d54716823ad4afe129dff71f24cbf68f9368424
selftests/bpf: bpf tunnel encap test

Validate basic tunnel encapsulation using ipip.

Set up two namespaces connected by veth. Connect a client and server.
Do this with and without bpf encap.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/progs/test_tc_tunnel.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_tc_tunnel.sh [new file with mode: 0755]