mengdemao / lazybsd

用户态网络库实现
https://mengdemao.github.io/lazybsd/
BSD 3-Clause "New" or "Revised" License
4 stars 3 forks source link

DPDK testpmd执行异常处理 #49

Open mengdemao opened 2 hours ago

mengdemao commented 2 hours ago

执行环境:

CPU: AMD
网卡: intel 82540
内核: Archlinux linux-vfio 

新增指令amd_iommu=on iommu=pt pcie_acs_override=downstream,multifunction

执行结果:

$ ./dpdk-testpmd -l 2-6 -- -i
EAL: Detected CPU lcores: 16
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: VFIO support initialized
EAL: Using IOMMU type 1 (Type 1)
Interactive-mode selected
Warning: NUMA should be configured manually by using --port-numa-config and --ring-numa-config parameters along with --numa.
testpmd: create a new mbuf pool <mb_pool_0>: n=179456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc

Warning! port-topology=paired and odd forward ports number, the last port will pair with itself.

Configuring Port 0 (socket 0)
EAL: Error enabling MSI-X interrupts for fd 33
Port 0: 00:1B:21:20:A5:25
Checking link statuses...
Done
mengdemao commented 2 hours ago

报错的地方是EAL: Error enabling MSI-X interrupts for fd 33

mengdemao commented 2 hours ago

检查BIOS/UEFI设置,查看是否有关于PCI Express中断的选项,确保MSI-X是启用的 @mengdemao

mengdemao commented 37 minutes ago

我明白了,此设备82540是PCI网卡,但是接在了PCIE上