]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Adjust data size to have ETH_HLEN
authorShigeru Yoshida <syoshida@redhat.com>
Tue, 21 Jan 2025 15:06:43 +0000 (00:06 +0900)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 29 Jan 2025 16:51:51 +0000 (08:51 -0800)
commitc7f2188d68c114095660a950b7e880a1e5a71c8f
tree868938e91e43d8dbd5e6ec0ccea897d02bd54445
parent6b3d638ca897e099fa99bd6d02189d3176f80a47
selftests/bpf: Adjust data size to have ETH_HLEN

The function bpf_test_init() now returns an error if user_size
(.data_size_in) is less than ETH_HLEN, causing the tests to
fail. Adjust the data size to ensure it meets the requirement of
ETH_HLEN.

Signed-off-by: Shigeru Yoshida <syoshida@redhat.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250121150643.671650-2-syoshida@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/xdp_cpumap_attach.c
tools/testing/selftests/bpf/prog_tests/xdp_devmap_attach.c