linux - AF_XDP 零拷贝 - 操作不支持错误
问题描述
我正在尝试启用 AF_XDP 零复制模式,我在 Cent OS 8(内核 4.18)中看到错误,但 SKB 模式和带复制的 DRV 模式工作正常。驱动程序是 ixgbe 5.6.5,根据文档支持 AF_XDP 零拷贝。strace 显示失败是在绑定期间
./af_xdp_user -d eth2 -z -q 1
bind(3, {sa_family=0x2c /* AF_??? */, sa_data="\4\0006\1\0\0\0\0\0\0\0\0\0\0"}, 16) = -1 EOPNOTSUPP (Operation not supported)
ethtool 显示我有组合队列而不是单独的 rx/tx 队列。那是问题吗?
[root@localhost ~]# ethtool -l eth2
Channel parameters for eth2:
Pre-set maximums:
RX: 0
TX: 0
Other: 1
Combined: 63
Current hardware settings:
RX: 0
TX: 0
Other: 1
Combined: 9
[root@localhost ~]# ethtool -i eth2
driver:
ixgbe
version: 5.6.5
firmware-version: 0x61c10001
expansion-rom-version:
bus-info: 0000:00:06.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
任何想法缺少什么?
解决方案
推荐阅读
- ios - scrollToItem 在我的 CollectionView 中不起作用?
- javascript - Facebook Instant Games - 移动设备上的错误分辨率 (JS/HTML5)
- python - 未能在张量流中运行分布式初始
- python - 无法在我的应用中登录
- css - 当容器从 1000px 缩小到 600px 时,如何使用 CSS 将 div 的宽度从容器的 80% 平滑更改为容器的 100%?
- android - 为 Cocos Creator 游戏集成 3rd 方应用
- node.js - Grunt 变量作为文件名和文件路径
- here-api - HERE 地图中的路线标记,RouteBoxer 端口
- angular - 为什么我的代码在 subscribe(observables) 之后没有执行?
- opengl-es - 如何在顶点着色器中使用两个或多个属性?OpenGL ES2.0