2

我已将 NIC 卡配置如下:-

[root@localhost ethtool]# ../../tools/dpdk-devbind.py -s


Network devices using DPDK-compatible driver
============================================
0000:81:00.0 'NetXtreme BCM5722 Gigabit Ethernet PCI Express' drv=igb_uio unused=tg3

Network devices using kernel driver
===================================
0000:02:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' if=ens513f0 drv=ixgbe unused=igb_uio
0000:02:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' if=ens513f1 drv=ixgbe unused=igb_uio
0000:04:00.0 'I350 Gigabit Network Connection' if=enp4s0f0 drv=igb unused=igb_uio
0000:04:00.3 'I350 Gigabit Network Connection' if=enp4s0f3 drv=igb unused=igb_uio

Other network devices
=====================
<none>

Crypto devices using DPDK-compatible driver
===========================================
<none>

Crypto devices using kernel driver
==================================
0000:84:00.0 'DH895XCC Series QAT' drv=dh895xcc unused=qat_dh895xcc,igb_uio

Other crypto devices
====================
<none>

当我运行 ethtool 示例应用程序时,它给出的错误为 0 NIC 端口,如下所示:-

[root@localhost ethtool]# ./ethtool-app/ethtool-app/x86_64-native-    EAL: Detected 47 lcore(s)
EAL: Probing VFIO support...
EAL: PCI device 0000:02:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10fb net_ixgbe
EAL: PCI device 0000:02:00.1 on NUMA socket 0
EAL:   probe driver: 8086:10fb net_ixgbe
EAL: PCI device 0000:04:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:04:00.3 on NUMA socket 0
EAL:   probe driver: 8086:1521 net_e1000_igb
Number of NICs: 0
EAL: Error - exiting with code: 1
Cause: No available NIC ports!

如果端口配置错误或其他原因,有人可以帮我配置端口。

4

2 回答 2

0

出现上述错误是因为不支持以下驱动程序:- 0000:81:00.0 'NetXtreme BCM5722 Gigabit Ethernet PCI Express' drv=igb_uio used=tg3

所以将 DPDK 与支持的驱动程序绑定解决了这个问题。

于 2017-02-08T12:02:19.080 回答
0

dpdk-devbind.py 工具在这里可能有点误导。并非所有使用 DPDK 兼容驱动程序的设备实际上都受 DPDK 支持。

以下是 DPDK 中支持的 Broadcom NIC 列表:

http://dpdk.org/doc/guides/nics/bnxt.html

看起来 BCM5722 不存在。

另一方面,您似乎还有四个其他 NIC,它们受 DPDK 支持:

EAL: PCI device 0000:02:00.0 on NUMA socket 0
EAL:   probe driver: 8086:10fb net_ixgbe
EAL: PCI device 0000:02:00.1 on NUMA socket 0
EAL:   probe driver: 8086:10fb net_ixgbe
EAL: PCI device 0000:04:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:04:00.3 on NUMA socket 0
EAL:   probe driver: 8086:1521 net_e1000_igb

因此,您需要将其中一个绑定到 igb_uio 并尝试再次运行该示例。

于 2017-05-05T16:47:40.863 回答