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)
commit98cdabcd0798bd9991821493120b928ed0dfab73
treef3b447a95be388338c2b57c595290d5d817162b2
parent908adce6465394ea4a09c144507a40848e1d7db5
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]