-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpf: one cannot compile BPFs that include rte_mbuf_core.h #672
Labels
Milestone
Comments
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
The text was updated successfully, but these errors were encountered: