如何修复“无有效端口"?构建应用程序时在dpdk-18.02中出现问题? [英] How to fix "no valid ports" issue in dpdk-18.02 while building the application?

查看:477
本文介绍了如何修复“无有效端口"?构建应用程序时在dpdk-18.02中出现问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用dpdk-v18.02构建应用程序,并显示无有效端口"错误.

Building an application using dpdk-v18.02 and getting an error as "no valid ports".

我尝试了dpdk-v19.02,它给出了相同的错误.

I tried dpdk-v19.02 and it's giving the same error.

这是错误:

EAL: Detected 40 lcore(s)
EAL: Multi-process socket /var/run/.rte_unix
EAL: Probing VFIO support...
EAL: PCI device 0000:04:00.0 on NUMA socket 0
EAL:   probe driver: 10ee:9038 xnic
EAL: Requested device 0000:04:00.0 cannot be used
EAL: Error - exiting with code: 1
  Cause: Error: no valid ports

该端口已绑定到驱动程序:

The port is already bound to the driver:

dpdk/usertools/# python dpdk-devbind.py --bind=igb_uio 04:00.0
0000:04:00.0 already bound to driver igb_uio, skipping 

检查端口绑定为python dpdk-devbind.py --status

Checking port bound as python dpdk-devbind.py --status

Network devices using DPDK-compatible driver
============================================
0000:04:00.0 'Device 9038' drv=igb_uio unused=

推荐答案

此日志消息引用的是PMD(用户空间轮询模式驱动程序")查找,而不是内核驱动程序(如igb_uio).如果DPDK支持此设备,则将有一些PMD(drivers/net/目录)声明对给定的供应商ID(例如,10ee)和设备ID(例如,9038)的支持.在DPDK源代码树中搜索供应商ID 10ee不会产生任何结果.也就是说,显然,您要探查的设备没有DPDK驱动程序.遗憾的是,只有实现了功能强大的PMD并将其添加到源代码树后,您才能将该设备与DPDK一起使用.

This log message refers to the PMD (userspace "Poll Mode Driver") lookup, not the kernel driver (like igb_uio). If this device was supported by DPDK, then there would be some PMD (drivers/net/ directory) to claim support for the given vendor ID (in example, 10ee) and device ID (in example, 9038). Searching for the vendor ID 10ee in DPDK source tree yields nothing. That is, apparently, there is no DPDK driver for the device you're trying to probe. Regretfully, you won't be able to use this device with DPDK until a capable PMD is implemented and added to the source tree.

这篇关于如何修复“无有效端口"?构建应用程序时在dpdk-18.02中出现问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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