DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: "Rajesh Goel (rajegoel)" <rajegoel@cisco.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: Dpdk-pdump not capturing packet for vmxnet3 device
Date: Wed, 19 Mar 2025 09:27:53 -0700	[thread overview]
Message-ID: <20250319092753.210e92df@hermes.local> (raw)
In-Reply-To: <BN9PR11MB53545D51138B2F27A402659EDDD92@BN9PR11MB5354.namprd11.prod.outlook.com>

On Wed, 19 Mar 2025 07:21:30 +0000
"Rajesh Goel (rajegoel)" <rajegoel@cisco.com> wrote:

> Hi DPDK community,
> 
> I need some urgent help.
> 
> 1)      Iam running my dpdk application on a VMware based VM. Iam using 20.11.9 dpdk version
> Iam directly connected to the PCI device to receive pkts on my application.
> 
>       :
>       EAL: Detected 16 lcore(s)
>       EAL: Detected 1 NUMA nodes
>       EAL: Detected shared linkage of DPDK
>       EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
>       EAL: Selected IOVA mode 'PA'
>       EAL: No available hugepages reported in hugepages-1048576kB
>       EAL: Probing VFIO support...
>       EAL: VFIO support initialized
>       EAL: Probe PCI driver: net_vmxnet3 (15ad:7b0) device: 0000:04:00.0 (socket 0)
>       EAL: No legacy callbacks, legacy socket not created
>       :
> 
> 2)      Iam trying to use dpdk-pdump application to capture packets.
> 
>       dpdk-pdump -l 3 -- --pdump 'device_id=0000:04:00.0,queue=*,rx-dev=/tmp/rx.pcap,total-num-mbufs=8192,ring-size=128'
> 
>       EAL: Detected 16 lcore(s)
>       EAL: Detected 1 NUMA nodes
>       EAL: Detected static linkage of DPDK
>       EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_644376_50d5dc20612f8
>       EAL: Selected IOVA mode 'PA'
>       EAL: Probing VFIO support...
>       EAL: VFIO support initialized
>       EAL: Probe PCI driver: net_vmxnet3 (15ad:7b0) device: 0000:04:00.0 (socket 0)
>       Port 1 MAC: 02 70 63 61 70 00
>        core (3), capture for (1) tuples
>        - port 0 device (0000:04:00.0) queue 65535
>       ^C
> 
>       Signal 2 received, preparing to exit...
>       ##### PDUMP DEBUG STATS #####
>        -packets dequeued:                                       0
>        -packets transmitted to vdev:            0
>        -packets freed:                                  0
> 
> This is the mempool and ring which got created in app side
> 
>             ring <MP_pdump_pool_0>@0x10045db00
>               flags=0
>               size=16384
>               capacity=16383
>               ct=0
>               ch=0
>               pt=8192
>               ph=8192
>               used=8192
>               avail=8191
>             ring <rx_ring_0>@0x102802680
>               flags=0
>               size=128
>               capacity=127
>               ct=0
>               ch=0
>               pt=0
>               ph=0
>               used=0
>               avail=127
> 
> This is the port output, port 0 is application and port 1 is created by pdump and no pkt is seen to be captured.
> 
> Port 0 stats:
>  - link status: 1
>  - Pkts in:   50
>  - Pkts out:  0
>  - total ibytes: 4024
>  - total obytes: 0
>  - rx miss: 0
>  - In Errs:   0
>  - Out Errs:  0
>  - Mbuf Errs: 0
>  - Q Rx Packets:
> 
> Port 1 stats:
>  - link status: 1
>  - Pkts in:   0
>  - Pkts out:  0
>  - total ibytes: 0
>  - total obytes: 0
>  - rx miss: 0
>  - In Errs:   0
>  - Out Errs:  0
>  - Mbuf Errs: 0
>  - Q Rx Packets:
> 
> 3)      I see the same result while using dpdk-testpmd on the APP side.
> 
> 4)      As per this page, https://doc.dpdk.org/guides/tools/pdump.html.
>       Is this applicable to vmxnet3 device here ??
> 
> *       As of now the dpdk-pdump tool cannot capture the packets of virtual devices in the primary process due to a bug in the ethdev library. Due to this bug, in a multi process context, when the primary and secondary have different ports set, then the secondary process (here the dpdk-pdump tool) overwrites the rte_eth_devices[] entries of the primary process.
> 
> Thanks
> Rajesh
> 
> 

Try dpdk-dumpcap instead. Pdump is limited and will not get any new features.
I am going to propose deprecating pdump in 25.11.

      reply	other threads:[~2025-03-19 16:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-19  7:21 Rajesh Goel (rajegoel)
2025-03-19 16:27 ` Stephen Hemminger [this message]

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=20250319092753.210e92df@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=rajegoel@cisco.com \
    /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).