On Fri, 1 Oct 2021 15:10:41 +0800
廖書華 <sim860...@gmail.com> wrote:

> Dear,
> 
> I'm the new for using DPDK.
> I met the problem while trying to use pdump to capture the packet from my
> own application, but it bumps into some error as below. Do you have any
> suggestions?
> 
> [oai@localhost pdump]$ sudo ./dpdk-pdump -- --pdump
> 'port=0,queue=*,tx-dev=/tmp/tx.pcap,rx-dev=/tmp/rx.pcap' EAL: Detected 72
> lcore(s) EAL: Detected 2 NUMA nodes EAL: Multi-process socket
> /var/run/dpdk/rte/mp_socket_10018_2d422b12bdfd4 EAL: failed to send to
> (/var/run/dpdk/rte/mp_socket) due to Connection refused EAL: Fail to send
> request /var/run/dpdk/rte/mp_socket:bus_vdev_mp vdev_scan(): Failed to
> request vdev from primary EAL: Selected IOVA mode 'VA' EAL: Probing VFIO
> support... EAL: failed to send to (/var/run/dpdk/rte/mp_socket) due to
> Connection refused EAL: Fail to send request
> /var/run/dpdk/rte/mp_socket:eal_vfio_mp_sync EAL: cannot request default
> container fd EAL: VFIO support could not be initialized EAL: Could not map
> memory from primary process EAL: FATAL: Cannot init memory EAL: Cannot init
> memory PANIC in main(): Cannot init EAL 4: [./dpdk-pdump() [0x480929]] 3:
> [/lib64/libc.so.6(__libc_start_main+0xf5) [0x7ffff6aa2555]] 2:
> [./dpdk-pdump(main+0x52e) [0x480f1e]] 1: [./dpdk-pdump(__rte_panic+0xe0)
> [0xe0f600]] Aborted

Your mailer is mangling that message. But it look like the secondary
process failed to start at all.

Is the application and pdump running in same environment?
For example is the application running in a container where the namespace
is different?

> 
> P.S.
> The DPDK version in our lab is for 19.11.
> After modifying CONFIG_RTE_LIBRTE_PMD_PCAP=y & CONFIG_RTE_LIBRTE_PDUMP=y,I
> try to use ICC for the compilation.
> Also, I already add function rte_pdump_init() in my application.

Did you check return value from rte_pdump_init()?

It might be helpful to see the full DPDK config.


Reply via email to