我正在尝试启用 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
任何想法缺少什么?