Skip to contentSkip to conversation

bpf/xdp: disable on 32bit x86

PATCH Applied [email protected] 4 participants 4 messages Apr 25, 2024 – Jun 18, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf/xdp: disable on 32bit x86

From: Luca Boccassi <[email protected]>

As per Intel, this is not supported, and the librte-bpf test fails on 32bit x86 kernels, so disable the library and the pmd.

---
 drivers/net/af_xdp/meson.build | 6 ++++++
 lib/bpf/meson.build            | 6 ++++++
 2 files changed, 12 insertions(+)
drivers/net/af_xdp/meson.build +6 -0
index 9f33e57fa2..2e936a1905 100644
@@ -7,6 +7,12 @@ if is_windows
     subdir_done()
 endif
 
+if arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_32')
+    build = false
+    reason = 'not supported on 32bit x86'
+    subdir_done()
+endif
+
 sources = files('rte_eth_af_xdp.c')
 
 libxdp_ver = '>=1.2.2'
lib/bpf/meson.build +6 -0
index cd739bb827..776dbb72c9 100644
@@ -7,6 +7,12 @@ if is_windows
     subdir_done()
 endif
 
+if arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_32')
+    build = false
+    reason = 'not supported on 32bit x86'
+    subdir_done()
+endif
+
 sources = files('bpf.c',
         'bpf_dump.c',
         'bpf_exec.c',
Signature · 1 line
2.39.2
#3 lore raw
In reply to [email protected]

Recheck-request: iol-compile-amd64-testing

The DPDK Community Lab updated to the latest Alpine image yesterday, which resulted in all Alpine builds failing. The failure is unrelated to your patch, and this recheck should remove the fail on Patchwork, as we have disabled Alpine testing for now.