]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Update xdp_context_test_run test to check maximum metadata size
authorToke Høiland-Jørgensen <toke@redhat.com>
Mon, 5 Jan 2026 11:47:46 +0000 (12:47 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 6 Jan 2026 19:41:41 +0000 (11:41 -0800)
commitab86d0bf01f6d0e37fd67761bb62918321b64efc
tree08b896fd5855142e4e593985f63c6f54626dcf04
parente558cca217790286e799a8baacd1610bda31b261
selftests/bpf: Update xdp_context_test_run test to check maximum metadata size

Update the selftest to check that the metadata size check takes the
xdp_frame size into account in bpf_prog_test_run. The original
check (for meta size 256) was broken because the data frame supplied was
smaller than this, triggering a different EINVAL return. So supply a
larger data frame for this test to make sure we actually exercise the
check we think we are.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Reviewed-by: Amery Hung <ameryhung@gmail.com>
Link: https://lore.kernel.org/r/20260105114747.1358750-2-toke@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/xdp_context_test_run.c