DPDK usage discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Sameer Vaze <svaze@qti.qualcomm.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: DPDK Pdump tool is not able to attach to DPDK test pmd primary application
Date: Sat, 17 Feb 2024 08:59:52 -0800	[thread overview]
Message-ID: <20240217085952.7f8361eb@hermes.local> (raw)
In-Reply-To: <CO6PR02MB872118D47DA2B1D875E79183894E2@CO6PR02MB8721.namprd02.prod.outlook.com>

On Wed, 14 Feb 2024 22:44:46 +0000
Sameer Vaze <svaze@qti.qualcomm.com> wrote:

> Hey Folks,
> 
> I see the following message when I attempt to attach pdump to the testpmd sample application:
> 
> Pdump output:
> EAL: Failed to hotplug add device
> EAL: Error - exiting with code: 1
>   Cause: vdev creation failed:create_mp_ring_vdev:695
> 
> Testpmd output:
> Reached maximum number of Ethernet ports
> EAL: Driver cannot attach the device (net_pcap_rx_0)
> EAL: Failed to hotplug add device on primary
> 
> The primary and secondary applications were run using the following commands:
> 
> Primary: sudo ./dpdk-testpmd --proc-type=primary --file-prefix=test -d /path/to/pmd
> Secondary: sudo ./dpdk-pdump --proc-type=secondary --file-prefix=test -d /path/to/pmd -- --pdump 'port=0,queue=1,rx-dev=./rx.pcap,tx-dev=./tx.pcap'
> 
> DPDK version: 22.11.1
> 
> Is this a known issue? Is there any known fix for this?
> 
> Thanks
> Sameer Vaze

pdump and dumpcap can't work where the actual data transmit/receive is done in secondary
process. The problem is in the design using callbacks and the way the pdump/dumpcap is
initialized.

The pdump/dumpcap works as an additional secondary process.
At startup pdump/dumpcap communicates with primary process to enable callbacks on rx/tx but
these work only in the primary process. In secondary process, there are no rx/tx callbacks.

  reply	other threads:[~2024-02-17 16:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-14 22:44 Sameer Vaze
2024-02-17 16:59 ` Stephen Hemminger [this message]
2024-02-22 19:27   ` Sameer Vaze
2024-02-26  1:12     ` 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=20240217085952.7f8361eb@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=svaze@qti.qualcomm.com \
    --cc=users@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).