使用DPDK应用程序时,rte_eth_dev_count始终返回0 [英] While using DPDK application, rte_eth_dev_count is returning 0 always

查看:1827
本文介绍了使用DPDK应用程序时,rte_eth_dev_count始终返回0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照以下方式配置了NIC卡:-

I have configured NIC cards as below:-

[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端口,如下所示:-

When i run ethtool sample application it is giving error as 0 NIC ports as shown below:-

[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!

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

Can someone help me in configuring ports if port configuration is wrong or something else.

推荐答案

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

The dpdk-devbind.py tool might be a bit misleading here. Not all of the devices using DPDK-compatible driver is in fact supported by DPDK.

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

Here is the list of supported Broadcom NICs in DPDK:

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

好像没有BCM5722.

Looks like the BCM5722 is not there.

另一方面,看来您还有其他四个NIC,它们由DPDK支持:

On the other hand, it looks like you have four other NICs, which are supported by the 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,然后尝试再次运行该示例.

So you need to bind one of those to igb_uio and try to run the example again.

这篇关于使用DPDK应用程序时,rte_eth_dev_count始终返回0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆