Hello,
In 21.11, we work with meson/ninja for compilation/linkage.
Do you use it when you compile testpmd?
Have you tried using it with your application?
Regards,
Asaf Penso
From:
钱新宇 <qianxinyu1221@163.com>
Sent: Friday, April 15, 2022 12:17 PM
To: users@dpdk.org
Subject: dpdk21.11 error: No probed ethernet devices OR Unable to parse device '0000:0b:00.0'
Dear Madam/Sir:
I am new to DPDK and have some problems with 'No probed ethernet devices'
and 'Unable to parse device '0000:0b:00.0''
The environment is
:
cpu: Intel(R) Xeon(R) Gold 6254 CPU @ 3.10GHz
system: VM EXSI7.02u + centos7.7
linux kernel:
4.19.237
DPDK version: dpdk-21.11
network card:
mellanox connextX-5 MCX512A
drive: MLNX_OFED_LINUX-5.5-1.0.3.2-rhel7.7-x86_64
network config:both The
pass-through and SR_IOV
When I run
my own DPDK program which was upgraded from DPDK version 19.08 to 21.11,eal init reported error
:'No probed ethernet devices’
,or 'Unable to parse device '0000:0b:00.0'' When I set up ‘-a 0000:0b:00.0’
But when I run
app/dpdk-testpmd, there is
no problem whether I set '-a 0b:00.0' or not。
I compared the two programs,There
is no difference before rte_eal_init() in main(). The parameters passed to DPDK are also consistent.
I query to that driver is mlx5_core.
My user program uses Makefile with:
PKGCONF = pkg-config
CFLAGS += -O2 $(shell $(PKGCONF) --cflags --static libdpdk)
LDFLAGS += $(shell $(PKGCONF) --libs --static libdpdk)
How
should this problem be solved?
Is there any additional configuration for the DPDK user program
before running the main() function? Or maybe my compilation method doesn't meet the requirements for the MLX5 driver?
More info:
./dpdk-devbind.py -s
Network devices using kernel driver
===================================
0000:04:00.0 '82574L Gigabit Network Connection 10d3' if=ens161 drv=e1000e unused= *Active*
0000:0b:00.0 'MT27800 Family [ConnectX-5] 1017' if=ens192 drv=mlx5_core unused= *Active*
0000:0c:00.0 'MT27800 Family [ConnectX-5 Virtual Function] 1018' if=ens193 drv=mlx5_core unused=
0000:13:00.0 'MT27800 Family [ConnectX-5 Virtual Function] 1018' if=ens224 drv=mlx5_core unused= *Active*
0000:1b:00.0 'MT27800 Family [ConnectX-5 Virtual Function] 1018' if=ens256 drv=mlx5_core unused= *Active*
No 'Baseband' devices detected
==============================
No 'Crypto' devices detected
============================
No 'DMA' devices detected
=========================
No 'Eventdev' devices detected
==============================
No 'Mempool' devices detected
=============================
No 'Compress' devices detected
==============================
No 'Misc (rawdev)' devices detected
===================================
No 'Regex' devices detected