selftests/bpf: expand bpf tunnel test with decap
authorWillem de Bruijn <willemb@google.com>
Fri, 22 Mar 2019 18:32:50 +0000 (14:32 -0400)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Mar 2019 20:52:44 +0000 (13:52 -0700)
commitccd34cd3577dd6e244269bb8ccfab228360aa53d
treeb83252e12af5d65d0db6d6ab727f8ae84459f593
parent98cdabcd0798bd9991821493120b928ed0dfab73
selftests/bpf: expand bpf tunnel test with decap

The bpf tunnel test encapsulates using bpf, then decapsulates using
a standard tunnel device to verify correctness.

Once encap is verified, also test decap, by replacing the tunnel
device on decap with another bpf program.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
tools/testing/selftests/bpf/test_tc_tunnel.sh