]> git.baikalelectronics.ru Git - kernel.git/commit
selftests, bpf: Extend test_tc_tunnel test with vxlan
authorXuesen Huang <huangxuesen@kuaishou.com>
Fri, 5 Mar 2021 12:33:47 +0000 (20:33 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 5 Mar 2021 22:58:59 +0000 (23:58 +0100)
commit256becd450172eec74566f1aa7819ce80181d7e1
treeaa459c77fedac03c8306b99effad1c73456a2d1a
parentd01b59c9ae94560fbcceaafeef39784d72765033
selftests, bpf: Extend test_tc_tunnel test with vxlan

Add BPF_F_ADJ_ROOM_ENCAP_L2_ETH flag to the existing tests which
encapsulates the ethernet as the inner l2 header.

Update a vxlan encapsulation test case.

Signed-off-by: Xuesen Huang <huangxuesen@kuaishou.com>
Signed-off-by: Li Wang <wangli09@kuaishou.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/bpf/20210305123347.15311-1-hxseverything@gmail.com
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
tools/testing/selftests/bpf/test_tc_tunnel.sh