DPDK usage discussions
 help / color / mirror / Atom feed
* Re: [dpdk-users] dpdk-pdump fails to initialize mysteriously
@ 2018-08-16 12:45 Rami Rosen
  2018-08-16 21:47 ` Daniel Shelepov
  0 siblings, 1 reply; 3+ messages in thread
From: Rami Rosen @ 2018-08-16 12:45 UTC (permalink / raw)
  To: dashel; +Cc: users

Hi, Daniel,

The error that you get, "Failed to parse device "net_pcap_rx_0", hints that
DPDK was built without PCAP support on your setup.

What does
"cat build/.config | grep CONFIG_RTE_LIBRTE_PMD_PCAP" show ?
if it is "n", can you please set it to "y", then build DPDK and try again?

Regards,
Rami Rosen

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

* Re: [dpdk-users] dpdk-pdump fails to initialize mysteriously
  2018-08-16 12:45 [dpdk-users] dpdk-pdump fails to initialize mysteriously Rami Rosen
@ 2018-08-16 21:47 ` Daniel Shelepov
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Shelepov @ 2018-08-16 21:47 UTC (permalink / raw)
  To: Rami Rosen; +Cc: users

Hi Rami,

That was indeed the issue.  Looking back at the packet capture documentation, I can see that this step is explicitly mentioned.  I must have done it when configuring my previous working setup, but failed to record it in my notes here.

Thanks for the pointer!

Daniel

-----Original Message-----
From: Rami Rosen <roszenrami@gmail.com> 
Sent: Thursday, August 16, 2018 5:46 AM
To: Daniel Shelepov <dashel@microsoft.com>
Cc: users@dpdk.org
Subject: re: dpdk-pdump fails to initialize mysteriously

Hi, Daniel,

The error that you get, "Failed to parse device "net_pcap_rx_0", hints that DPDK was built without PCAP support on your setup.

What does
"cat build/.config | grep CONFIG_RTE_LIBRTE_PMD_PCAP" show ?
if it is "n", can you please set it to "y", then build DPDK and try again?

Regards,
Rami Rosen

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

* [dpdk-users] dpdk-pdump fails to initialize mysteriously
@ 2018-08-15 22:36 Daniel Shelepov
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Shelepov @ 2018-08-15 22:36 UTC (permalink / raw)
  To: users

Hello,

I am having difficulties running dpdk-pdump on a fresh setup.  I previously had it working on a different VM/app/DPDK version combo, but somehow it now doesn't (version 18.05, testpmd being the primary app).  Error is "failed to parse device".  Does anyone have an idea of how to debug this?

>:~/dpdk-18.05/out/bin$ sudo ./dpdk-pdump -- --pdump 'device_id=0002:00:02.0,queue=*,rx-dev=/home/dashel/capture-rx.pcap,tx-dev=/home/dashel/capture-tx.pcap'
EAL: Detected 8 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_18627_e6fcbc35bcdc
EAL: Probing VFIO support...
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
EAL: PCI device 0001:00:02.0 on NUMA socket 0
EAL:   probe driver: 15b3:1004 net_mlx4
PMD: net_mlx4: PCI information matches, using device "mlx4_0" (VF: true)
PMD: net_mlx4: 1 port(s) detected
PMD: net_mlx4: port 1 MAC address is 00:0d:3a:06:8c:55
EAL: PCI device 0002:00:02.0 on NUMA socket 0
EAL:   probe driver: 15b3:1004 net_mlx4
PMD: net_mlx4: PCI information matches, using device "mlx4_1" (VF: true)
PMD: net_mlx4: 1 port(s) detected
PMD: net_mlx4: port 1 MAC address is 00:0d:3a:06:58:2f
ERROR: failed to parse device "net_pcap_rx_0"
EAL: Error - exiting with code: 1
  Cause: vdev creation failed:create_mp_ring_vdev:631

Verified that CONFIG_RTE_LIBRTE_PDUMP=y

I am launching the primary app first, then the PDUMP binary.  Like I said, this flow worked previously, but now doesn't and I can't figure out where to start debugging this.  If anyone ran into something similar recently, would appreciate any pointers.

Daniel

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

end of thread, other threads:[~2018-08-16 22:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-16 12:45 [dpdk-users] dpdk-pdump fails to initialize mysteriously Rami Rosen
2018-08-16 21:47 ` Daniel Shelepov
  -- strict thread matches above, loose matches on Subject: below --
2018-08-15 22:36 Daniel Shelepov

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).