DPDK patches and discussions
 help / color / mirror / Atom feed
From: "florian.duesing98@web.de" <florian.duesing98@web.de>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: Segment Fault using dpdk-pktgen
Date: Tue, 28 May 2024 07:54:22 +0000	[thread overview]
Message-ID: <MW6PR22MB4249C6285322F099C228DA70AEF12@MW6PR22MB4249.namprd22.prod.outlook.com> (raw)

[-- 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 --]

             reply	other threads:[~2024-05-28 13:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-28  7:54 florian.duesing98 [this message]
2024-05-28 15:01 ` Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MW6PR22MB4249C6285322F099C228DA70AEF12@MW6PR22MB4249.namprd22.prod.outlook.com \
    --to=florian.duesing98@web.de \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).