[PATCH v3 07/14] test/bpf: fix unsupported BPF instructions in ELF load test
Konstantin Ananyev
konstantin.ananyev at huawei.com
Thu Jan 22 11:33:42 CET 2026
>
> The DPDK BPF library only handles the base BPF instructions.
> It does not handle JMP32 which would cause the bpf_elf_load
> test to fail on clang 20 or later.
>
> Bugzilla ID: 1844
> Fixes: cf1e03f881af ("test/bpf: add ELF loading")
> Cc: stable at dpdk.org
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Acked-by: Marat Khalili <marat.khalili at huawei.com>
> ---
> app/test/bpf/meson.build | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/app/test/bpf/meson.build b/app/test/bpf/meson.build
> index aaecfa7018..91c1b434f8 100644
> --- a/app/test/bpf/meson.build
> +++ b/app/test/bpf/meson.build
> @@ -24,7 +24,8 @@ if not xxd.found()
> endif
>
> # BPF compiler flags
> -bpf_cflags = [ '-O2', '-target', 'bpf', '-g', '-c']
> +# At present: DPDK BPF does not support v3 or later
> +bpf_cflags = [ '-O2', '-target', 'bpf', '-mcpu=v2', '-g', '-c']
>
> # Enable test in test_bpf.c
> cflags += '-DTEST_BPF_ELF_LOAD'
> --
Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
> 2.51.0
More information about the stable
mailing list