]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa14b26abc86fe92b4d14e5cce8c0758c3f1f3d8
treeb83252e12af5d65d0db6d6ab727f8ae84459f593
parent7054d70f165250e93d30f2eadf4e9d40823f1b9d
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