selftests/bpf: test_xdp_veth: Add new test cases for XDP flags
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 31 Jan 2025 07:21:49 +0000 (08:21 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 3 Feb 2025 11:33:52 +0000 (03:33 -0800)
commit0c4ea7e3479ce92ec4fccf9ae32eddebb8e462f9
treee40dd34062060d4cac5f1482e8d98ce8c46fe54d
parent29c7bb7d0fa7c4bb30b93c9ea56de80c779fcc47
selftests/bpf: test_xdp_veth: Add new test cases for XDP flags

The XDP redirection is tested without any flag provided to the
xdp_attach() function.

Add two subtests that check the correct behaviour with
XDP_FLAGS_{DRV/SKB}_MODE flags

Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250131-redirect-multi-v4-10-970b33678512@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c