卸载XDP程序到NetRonome Smart NIC不支持的功能

发布于 2025-01-26 02:17:39 字数 774 浏览 5 评论 0 原文

我正在尝试将一个小的EBPF程序卸载到使用地图的NIC。我可以在哈希地图中查找元素,但是当我添加命令bpf_map_update_elem时,我会在尝试加载时会恢复错误。

14: (85) call bpf_map_update_elem#2
[nfp] map_update: not supported by FW

我正在运行的驱动程序:

$ ethtool -i $ETHNAME
driver: nfp
version: 5.15.0-27-generic
firmware-version: 0.0.3.5 0.31 bpf-2.0.6.124 ebpf
expansion-rom-version:
bus-info: 0000:06:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

根据应支持此功能。 有人找到了解决方案吗?

I'm trying to offload a small EBPF program to the NIC that uses a map. I can lookup elements in the hash map, but when I add the command bpf_map_update_elem I get back an error when I attempt to load.

14: (85) call bpf_map_update_elem#2
[nfp] map_update: not supported by FW

The driver I'm running:

$ ethtool -i $ETHNAME
driver: nfp
version: 5.15.0-27-generic
firmware-version: 0.0.3.5 0.31 bpf-2.0.6.124 ebpf
expansion-rom-version:
bus-info: 0000:06:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

According to https://www.netronome.com/media/documents/UG_Getting_Started_with_eBPF_Offload.pdf this function should be supported.
Has anybody found a solution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

和我恋爱吧 2025-02-02 02:17:39

您链接的文档:

由于内核4.17,我们的驱动程序支持地图更新。在撰写本文时,我们的公共固件确实
不包含DataPath的地图更新支持,但可以根据要求提供。

您应该联系 NetRonomome的客户支持服务以获取支持MAP更新的固件版本。

(我研究了本指南,据我所知,带有地图更新的固件尚未公开发布。)

The document you link states:

Since Kernel 4.17, map updates are supported by our driver. As of this writing, our public firmware does
not contain map update support from the datapath, but this is available on request.

You should contact Netronome's customer support service to get the version of the firmware which supports map updates.

(I worked on this guide and can confirm that, to my knowledge, the firmware with map updates has not been publicly released.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文