OSDN Git Service

selftests/bpf: extend bpf tunnel test with gre
authorWillem de Bruijn <willemb@google.com>
Fri, 22 Mar 2019 18:32:52 +0000 (14:32 -0400)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Mar 2019 20:52:44 +0000 (13:52 -0700)
commit7255fade7b93e7e84e12f27ae5e8af9cf8b93745
tree199b66483f48892e3e2f927e4028d76ab20d34c2
parentef81bd054942e2bd8289c91a3528e6fc0ca26c1c
selftests/bpf: extend bpf tunnel test with gre

GRE is a commonly used protocol. Add GRE cases for both IPv4 and IPv6.

It also inserts different sized headers, which can expose some
unexpected edge cases.

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