AltraMayor / AltraMayor/gatekeeper

bpf: one cannot compile BPFs that include rte_mbuf_core.h

未关闭
#672 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug workaround available
主要语言
C
星标
1.6k
派生
252
PR 合并指标
30 天内没有已合并 PR

描述

A BPF needs to include the header `` to access `struct rte_mbuf`. But the current version of the header `` cannot be included in a BPF. This bug is present in the latest DPDK (i.e. 23.11) and a [bug report](https://bugs.dpdk.org/show_bug.cgi?id=1376) has been filed.

Here's the error one gets while compiling the BPFs included with Gatekeeper:
```
~/gatekeeper/bpf$ make
clang -O2 -g -target bpf -I../include -Wall -Wextra -Wno-int-to-void-pointer-cast -o granted.bpf -c granted.c
In file included from granted.c:29:
In file included from /usr/local/include/rte_mbuf_core.h:21:
/usr/local/include/rte_byteorder.h:31:16: error: invalid output constraint '=Q' in asm
: [x1] "=Q" (x)
^
1 error generated.
make: *** [Makefile:17: granted.bpf] Error 1
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。