我一直在尝试在docker镜像中使用DPDK的NFP轮询模式驱动程序来绑定Netronome NIC,但是当运行testpmd时,链接总是显示为"down“,即使它是up (已经用其他方式测试过了).
在运行以下命令后运行dpdk-devbind.py --status时,在使用dpdk兼容驱动程序的网络设备下可以看到NIC:
modprobe vfio-pci dpdk-devbind.py --bind=vfio-pci 5e:00.0
但是,在运行以下命令时,它在testpmd中仍然显示为down。
./app/dpdk testpmd -i设置链接端口0显示端口信息0
有什么想法吗?
发布于 2021-09-14 12:28:00
根据DPDK文档,NFP PMD支持
在上述所有情况下,必须使用正确的固件加载和初始化主板支持包(More details from DPDK documentation有特殊情况下的The PMD PF has extra work to do which will delay the DPDK app initialization like uploading the firmware and configure the Link state properly when starting or stopping a PF port. Since DPDK 18.05 the firmware upload happens when a PF is initialized, which was not always true with older DPDK versions.
注意:在注释示例代码(或代码片段)中,需要DPDK版本和NIC固件。
因此,根据NFP PMD维护人员的建议,请考虑必要的延迟来启动链路状态。
https://stackoverflow.com/questions/67624591
复制相似问题