> On Wed, Jan 11, 2023 at 3:02 AM Ziyang Xuan > <william.xuanziyang@xxxxxxxxxx> wrote: >> >> Add ipip6 and ip6ip decap testcases. Verify that bpf_skb_adjust_room() >> correctly decapsulate ipip6 and ip6ip tunnel packets. >> >> Signed-off-by: Ziyang Xuan <william.xuanziyang@xxxxxxxxxx> >> --- >> .../selftests/bpf/progs/test_tc_tunnel.c | 91 ++++++++++++++++++- >> tools/testing/selftests/bpf/test_tc_tunnel.sh | 15 +-- >> 2 files changed, 98 insertions(+), 8 deletions(-) >> >> diff --git a/tools/testing/selftests/bpf/progs/test_tc_tunnel.c b/tools/testing/selftests/bpf/progs/test_tc_tunnel.c >> index a0e7762b1e5a..e6e678aa9874 100644 >> --- a/tools/testing/selftests/bpf/progs/test_tc_tunnel.c >> +++ b/tools/testing/selftests/bpf/progs/test_tc_tunnel.c >> @@ -38,6 +38,10 @@ static const int cfg_udp_src = 20000; >> #define VXLAN_FLAGS 0x8 >> #define VXLAN_VNI 1 >> >> +#ifndef NEXTHDR_DEST >> +#define NEXTHDR_DEST 60 >> +#endif > > Should not be needed if including the right header? include/net/ipv6.h > > Otherwise very nice extension. Thanks for expanding the test. "net/ipv6.h" do not under /usr/include/ and can not be included in bpf programs. > . >