gpt4 book ai didi

linux - DPDK错误: "Cause: No Ethernet ports - bye"

转载 作者:太空宇宙 更新时间:2023-11-04 05:13:34 26 4
gpt4 key购买 nike

标题是尝试运行名为 l2fwd 的 dpdk 示例应用程序时出现的错误的最后一行。当我通过 ./build/l2fwd -l 0-3 -n 4 -- -q 8 -p ffff 运行应用程序时,但最后几行出现此错误:

EAL: Error - exiting with code: 1

Cause: No Ethernet ports - bye

根据 dpdk 文档,在运行应用程序之前,我必须执行命令:modprobe ixgbe max_vfs=2,2

我也遇到此命令的问题,但我不确定这是应用程序执行失败的主要原因。

modprobe 命令的错误与 ixgbe 驱动程序有关,我无法安装它。 ixgbe的make后的错误是

cc1: error: code model kernel does not support PIC mode

Makefile:197: * * Aborting the build. *** This driver is not supported on kernel versions older than 2.4.0. Stop.

最佳答案

对于带有 DPDK 的 NIC,我们需要将其绑定(bind)到 UIO 或 VFIO 驱动程序。

请查看Binding and Unbinding Network Ports to/from the Kernel Modules在 DPDK 的入门指南中。

关于linux - DPDK错误: "Cause: No Ethernet ports - bye",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52315808/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com