selftests/bpf: add ipip6 and ip6ip decap to test_tc_tunnel
authorZiyang Xuan <william.xuanziyang@huawei.com>
Fri, 13 Jan 2023 09:25:10 +0000 (17:25 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Sun, 15 Jan 2023 20:56:17 +0000 (12:56 -0800)
commit7105f76fb56f5ed66a59bc048bc71e9f100e1d39
tree905aca8486fed33eadf5853d56c4d8bd681e3b04
parentd219df60a70ed0739aa5dd34b477763311fc5a7b
selftests/bpf: add ipip6 and ip6ip decap to test_tc_tunnel

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@huawei.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/dfd2d8cfdf9111bd129170d4345296f53bee6a67.1673574419.git.william.xuanziyang@huawei.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
tools/testing/selftests/bpf/test_tc_tunnel.sh