Open AltraMayor opened 8 months ago
The following patch works around the bug while the problem is being fixed in DPDK:
diff --git a/bpf/Makefile b/bpf/Makefile
index d98f52b..c426214 100644
--- a/bpf/Makefile
+++ b/bpf/Makefile
@@ -14,7 +14,7 @@ copy: all
$(INSTALL) -m660 $(TARGETS) $(DESTDIR)
%.bpf: %.c
- $(CC) $(CFLAGS) -o $@ -c $^
+ $(CC) $(CFLAGS) -o $@ -D RTE_FORCE_INTRINSICS -c $^
PHONY: cscope clean
This workaround is based on Tyler Retzlaff's comment.
Pull request #680 has applied the workaround. We are going to wait for DPDK to fix the issue upstream before removing the workaround.
A BPF needs to include the header
<rte_mbuf_core.h>
to accessstruct rte_mbuf
. But the current version of the header<rte_mbuf_core.h>
cannot be included in a BPF. This bug is present in the latest DPDK (i.e. 23.11) and a bug report has been filed.Here's the error one gets while compiling the BPFs included with Gatekeeper: