> -----Original Message----- > From: Stephen Hemminger <[email protected]> > Sent: Sunday 18 January 2026 20:09 > To: [email protected] > Cc: Stephen Hemminger <[email protected]>; [email protected]; > Konstantin Ananyev > <[email protected]>; Marat Khalili <[email protected]> > Subject: [PATCH 4/6] test: fix unsupported BPF instructions in elf load test > > 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: [email protected] > > Signed-off-by: Stephen Hemminger <[email protected]> > --- > 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' > -- > 2.51.0
Acked-by: Marat Khalili <[email protected]>

