dpdk - 在使用 DPDK 应用程序时,rte_eth_dev_count 总是返回 0

标签 dpdk

我已按如下方式配置 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!

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

最佳答案

出现上述错误是因为不支持以下驱动程序:- 0000:81:00.0 'NetXtreme BCM5722 千兆以太网 PCI Express' drv=igb_uio 未使用=tg3

因此将 DPDK 与支持的驱动程序绑定(bind)解决了这个问题。

关于dpdk - 在使用 DPDK 应用程序时,rte_eth_dev_count 总是返回 0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42106676/

相关文章:

c - 在 Ubuntu 16.04 上构建 DPDK 17.02 和 16.11 时出错

c - C 中的 Jenkins 散列,大小不是 4 的倍数的键和地址 sanitizer

network-programming - 使用DPDK创建tcp/ip连接

network-programming - 即使 rte_eth_rx_burst 没有返回完整的突发,也会丢弃数据包

dpdk - rte_eal_init 的完整有效参数集是否记录在任何地方?

从 RX 环接收并在 TX 路径上释放的 DPDK 缓冲区

dpdk - E810 和 DPDK 19.11 上 dpdk-pdump 数据包的时间戳源

c - DPDK发送自定义pkt但收不到