yhwu
yhwu

Reputation: 39

DPDK run testpmd failed. EAL:no probed ethernet device

I'm new to dpdk and using dpdk-stable-17.11.2 on docker. OS is Ubuntu 14.04 and the kernel is 3.19.0-80-generic. I've followed the dpdk-setup.sh as below and bind the igb_uio driver to my device.

[14] x86_64-native-linuxapp-gcc
[17] Insert IGB UIO module
[18] Insert VFIO module
[19] Insert KNI module
[20] Setup hugepage mappings for non-NUMA systems
[21] Setup hugepage mappings for NUMA systems
[22] Display current Ethernet/Crypto device settings
[23] Bind Ethernet/Crypto device to IGB UIO module
[24] Bind Ethernet/Crypto device to VFIO module
[25] Setup VFIO permissions

Network devices using DPDK-compatible driver
============================================
0000:03:00.1 'NetXtreme II BCM57810 10 Gigabit Ethernet 168e' drv=igb_uio unused=vfio-pci

Network devices using kernel driver
===================================
0000:03:00.0 'NetXtreme II BCM57810 10 Gigabit Ethernet 168e' if=eth1 drv=bnx2x unused=igb_uio,vfio-pci *Active*
0000:04:00.0 'NetXtreme BCM5751 Gigabit Ethernet PCI Express 1677' if=eth0 drv=tg3 unused=igb_uio,vfio-pci *Active*
0000:07:00.0 'NX3031 Multifunction 1/10-Gigabit Server Adapter 0100' if=eth3 drv=netxen_nic unused=igb_uio,vfio-pci
0000:07:00.1 'NX3031 Multifunction 1/10-Gigabit Server Adapter 0100' if=eth4 drv=netxen_nic unused=igb_uio,vfio-pci

I got errors when running testpmd.

EAL: Detected 32 lcore(s)
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: No probed ethernet devices
PANIC in main():
Empty set of forwarding logical cores - check the core mask supplied in the command parameters
5: [x86_64-native-linuxapp-gcc/app/testpmd() [0x46504f]]
4: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fe9117c9f45]]
3: [x86_64-native-linuxapp-gcc/app/testpmd(main+0x8fb) [0x460aab]]
2: [x86_64-native-linuxapp-gcc/app/testpmd(__rte_panic+0xb8) [0x458a7a]]
1: [x86_64-native-linuxapp-gcc/app/testpmd(rte_dump_stack+0x1a) [0x4ea2aa]]

What have I missed?

Upvotes: 2

Views: 4601

Answers (3)

WENPIN1
WENPIN1

Reputation: 31

If we get the new DPDK version (I've tested on DPDK 23) and the old DPDK (e.g.19) working, "testpmd: No probed ethernet devices", it might be a iommu issue.

Please add "default_hugepagesz=1G hugepagesz=1G hugepages=16 iommu=pt intel_iommu=on" in Linux boot command parameter according the linux distro command.

And check the linux dmesg as follows, dmesg | grep -E "DMAR|IOMMU"

The messages like [ 0.000000] DMAR: IOMMU enabled ...

Upvotes: 0

yhwu
yhwu

Reputation: 39

I changed CONFIG_RTE_LIBRTE_BNX2X_PMD=n to CONFIG_RTE_LIBRTE_BNX2X_PMD=y in the $RTE_SDK/config/common_base.

0000:03:00.1 'NetXtreme II BCM57810 10 Gigabit Ethernet 168e' drv=igb_uio unused=vfio-pci [...] EAL: No probed ethernet devices

This error has solved.

Upvotes: 1

Andriy Berestovskyy
Andriy Berestovskyy

Reputation: 8534

0000:03:00.1 'NetXtreme II BCM57810 10 Gigabit Ethernet 168e' drv=igb_uio unused=vfio-pci [...] EAL: No probed ethernet devices

BCM57810 seems to be unsupported by the current version of Broadcom PMD: https://dpdk.org/doc/guides/nics/bnxt.html

As a workaround you can try to use a supported NIC instead (if possible) or a virtual device (might be much slower).

PANIC in main(): Empty set of forwarding logical cores - check the core mask supplied in the command parameters

You did not list the your command line options, but you definitely should check it for a lcore mask or core list or core map. Here is the list of EAL command line options: https://dpdk.org/doc/guides/testpmd_app_ug/run_app.html

Upvotes: 0

Related Questions