DPDK patches and discussions
 help / color / mirror / Atom feed
* Segment Fault using dpdk-pktgen
@ 2024-05-28  7:54 florian.duesing98
  2024-05-28 15:01 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: florian.duesing98 @ 2024-05-28  7:54 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 3441 bytes --]

Dear Developers of pktgen,
After the recent updates of pktgen I was finally able to compile the code but I get 2 critical errors when I try to use pktgen.

First:
I testet the newest pktgen code from git on a virtual Machine using EVE-NG and a physical Computer with an Intel i9 and 2 1G Nics. On both I installed and compiled everything as stated in the dokumentation, but when using pktgen, I only get a Segment Fault. I doesnt matter if i try using a blank command like: sudo ./path/to/pktgen or if I use more statements like: sudo ./path/to/pktgen -l 0-1 – -P -m 1.0. I only get following error message:

EAL: Detected CPU lcores: 6

EAL: Detected NUMA nodes: 1

EAL: Detected shared linkage of DPDK

EAL: Multi-process socket /var/run/dpdk/rte/mp_socket

EAL: Selected IOVA mode 'PA'

EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:03.0 (socket -1)

eth_virtio_pci_init(): Failed to init PCI device

EAL: Requested device 0000:00:03.0 cannot be used

EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:04.0 (socket -1)

EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:05.0 (socket -1)

TELEMETRY: No legacy callbacks, legacy socket not created

                                                      Total memory used =        0 KB


Port DevName          Index NUMA PCI Information   Src MAC           Promiscuous


====== Pktgen got a Segment Fault


Obtained 7 stack frames.

./Pktgen-DPDK/builddir/app/pktgen(+0x25e83) [0x5857c4580e83]

/lib/x86_64-linux-gnu/libc.so.6(+0x42990) [0x746baa642990]

./Pktgen-DPDK/builddir/app/pktgen(+0x99a7) [0x5857c45649a7]

./Pktgen-DPDK/builddir/app/pktgen(+0xa793) [0x5857c4565793]

/lib/x86_64-linux-gnu/libc.so.6(+0x28150) [0x746baa628150]

/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x89) [0x746baa628209]

./Pktgen-DPDK/builddir/app/pktgen(+0xb025) [0x5857c4566025]


The error occurs on both machines running ubuntu-23.10.
I have a testsetup in EVE-NG with the exact same specs, but running ubuntu-22.04. With dpdk 22.11.5 and pktgen 22.04.1 I was able to run pktgen with the statements mentioned above. But whatever I do in the pktgen command line, I am not able to generate traffic.

My final goal is using pktgen to read pcap files and use them to generate traffic.
The machine with ubuntu-22.04 opens my imix.pcap file when using -s 0:imix.pcap, but again I am not able to generate any traffic.
If I try to open the pcap file on one of the ubuntu-23.10 machines, I get following error:

EAL: Detected CPU lcores: 6

EAL: Detected NUMA nodes: 1

EAL: Detected shared linkage of DPDK

EAL: Multi-process socket /var/run/dpdk/rte/mp_socket

EAL: Selected IOVA mode 'PA'

EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:03.0 (socket -1)

eth_virtio_pci_init(): Failed to init PCI device

EAL: Requested device 0000:00:03.0 cannot be used

EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:04.0 (socket -1)

EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:05.0 (socket -1)

TELEMETRY: No legacy callbacks, legacy socket not created

EAL: Error - exiting with code: 1

  Cause: pktgen_pcap_open: rte_zmalloc_socket() failed for pcap_info_t structure

Can someone help me to figure out whats wrong? I really start to question myself. If you need more data let me know.
Thank you in advance

Sincerely
Florian Düsing

[-- Attachment #2: Type: text/html, Size: 17090 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Segment Fault using dpdk-pktgen
  2024-05-28  7:54 Segment Fault using dpdk-pktgen florian.duesing98
@ 2024-05-28 15:01 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2024-05-28 15:01 UTC (permalink / raw)
  To: florian.duesing98; +Cc: dev

On Tue, 28 May 2024 07:54:22 +0000
"florian.duesing98@web.de" <florian.duesing98@web.de> wrote:

> Dear Developers of pktgen,
> After the recent updates of pktgen I was finally able to compile the code but I get 2 critical errors when I try to use pktgen.

I don't think pktgen is maintained anymore.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-28 15:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-28  7:54 Segment Fault using dpdk-pktgen florian.duesing98
2024-05-28 15:01 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).