]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd115cb87be65b0e2ba2f3048c53d6ec0a62ac961
tree199b66483f48892e3e2f927e4028d76ab20d34c2
parent9f37136337c92aaf3fd1d8ff6c83c8f0e83fa51d
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