[dpdk-users] DPDPK-PDUMP not creating rx file

Pattan, Reshma reshma.pattan at intel.com
Tue Nov 1 15:46:31 CET 2016


Hi,

My replies inline.

Thanks,
Reshma

From: shokoofeh nobahari [mailto:sh.nobahari65 at gmail.com]
Sent: Sunday, October 30, 2016 7:11 AM
To: Pattan, Reshma <reshma.pattan at intel.com>
Subject: Re: DPDPK-PDUMP not creating rx file

Hi again Reshma
I worked on testpmd and below is the output of testpmd command in dpdk-setup.sh script (number 28 in the list)  :

Option: 28


  Enter hex bitmask of cores to execute testpmd app on
  Example: to execute app on cores 0 to 7, enter 0xff
bitmask: 0xff
Launching app
EAL: Detected 16 lcore(s)
EAL: Probing VFIO support...
EAL:   no supported IOMMU extensions found!
EAL: VFIO support could not be initialized
PMD: bnxt_rte_pmd_init() called for (null)
EAL: PCI device 0000:0e:00.0 on NUMA socket -1
EAL:   probe driver: 8086:105e rte_em_pmd
EAL: PCI device 0000:0e:00.1 on NUMA socket -1
EAL:   probe driver: 8086:105e rte_em_pmd
Interactive-mode selected
USER1: create a new mbuf pool <mbuf_pool_socket_0>: n=203456, size=2176, socket=0
Configuring Port 0 (socket 0)
Port 0: 00:1F:29:5A:65:40
Configuring Port 1 (socket 0)
Port 1: 00:1F:29:5A:65:41
Checking link statuses...
Port 0 Link Up - speed 1000 Mbps - full-duplex
Port 1 Link Down
Done
testpmd> start
io packet forwarding - ports=2 - cores=1 - streams=2 - NUMA support disabled, MP over anonymous pages disabled
Logical Core 1 (socket 1) forwards packets on 2 streams:
  RX P=0/Q=0 (socket 0) -> TX P=1/Q=0 (socket 0) peer=02:00:00:00:00:01
  RX P=1/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00

  io packet forwarding - CRC stripping disabled - packets/burst=32
  nb forwarding cores=1 - nb forwarding ports=2
  RX queues=1 - RX desc=128 - RX free threshold=0
  RX threshold registers: pthresh=0 hthresh=0 wthresh=0
  TX queues=1 - TX desc=512 - TX free threshold=0
  TX threshold registers: pthresh=0 hthresh=0 wthresh=0
  TX RS bit threshold=0 - TXQ flags=0x0
testpmd> stop
Telling cores to stop...
Waiting for lcores to finish...

  ---------------------- Forward statistics for port 0  ----------------------
  RX-packets: 131            RX-dropped: 0             RX-total: 131
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ----------------------------------------------------------------------------

  ---------------------- Forward statistics for port 1  ----------------------
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ----------------------------------------------------------------------------

  +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
  RX-packets: 131            RX-dropped: 0             RX-total: 131
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Done.

and here is the output od dpdk-pdump command , it is stiil ruunin gbut not creating rx.pcap file

./dpdk-pdump -c 0xff -n2 -- pdump 'port=0,queue=*,rx-dev=/tmp/rx.pcap'

EAL: Detected 16 lcore(s)
EAL: Probing VFIO support...
EAL:   cannot connect to primary process!
EAL: VFIO support could not be initialized
EAL: WARNING: Address Space Layout Randomization (ASLR) is enabled in the kernel.
EAL:    This may cause issues with mapping memory into secondary processes
PMD: bnxt_rte_pmd_init() called for (null)
EAL: PCI device 0000:0e:00.0 on NUMA socket -1
EAL:   probe driver: 8086:105e rte_em_pmd
EAL: PCI device 0000:0e:00.1 on NUMA socket -1
EAL:   probe driver: 8086:105e rte_em_pmd
[Reshma 1]:
After above logs you should be seeing  logs similar to below ones.

PMD: Initializing pmd_pcap for eth_pcap_rx_0
PMD: Creating pcap-backed ethdev on numa socket 0
Port 2 MAC: 00 00 00 01 02 03

Since you are not seeing, I guess dpdk-pdump tool  might have got stuck in the code somewhere.
Can you just add some  debug prints  after the below if condition in the file app/pdump/main.c, there are  3 such if conditions, so add prints at all 3 places.
Compile the dpdk-pdump again , run and give me the startup logs.

if (rte_eth_dev_attach(vdev_args,
&portid) < 0) {
cleanup_rings();
rte_exit(EXIT_FAILURE,
"vdev creation failed:"
"%s:%d\n", __func__, __LINE__);
}
<add printf here>
[Reshma 2]:
Can you provide the output of “rpm -qa | grep pcap”

[Reshma 3]:
Can you give the output of “grep CONFIG_RTE_LIBRTE_PMD_PCAP config/common_base”

Thanks,
Reshma

I have no idea what is the problem!



On Sat, Oct 29, 2016 at 4:33 PM, shokoofeh nobahari <sh.nobahari65 at gmail.com<mailto:sh.nobahari65 at gmail.com>> wrote:
Hi Reshma
I re installed everything from Ubuntu OS to dpdk and here is the output of testpmd command:

# ./testpmd -c 3 -n 4 -- portmask=0x01 --port-topology=chained
EAL: Detected 16 lcore(s)
EAL: Probing VFIO support...
EAL:   no supported IOMMU extensions found!
EAL: VFIO support could not be initialized
PMD: bnxt_rte_pmd_init() called for (null)
EAL: PCI device 0000:0e:00.0 on NUMA socket -1
EAL:   probe driver: 8086:105e rte_em_pmd
EAL: PCI device 0000:0e:00.1 on NUMA socket -1
EAL:   probe driver: 8086:105e rte_em_pmd
EAL: No probed ethernet devices
USER1: create a new mbuf pool <mbuf_pool_socket_0>: n=155456, size=2176, socket=0
Done
No commandline core given, start packet forwarding
io packet forwarding - ports=0 - cores=0 - streams=0 - NUMA support disabled, MP over anonymous pages disabled

  io packet forwarding - CRC stripping disabled - packets/burst=32
  nb forwarding cores=1 - nb forwarding ports=0
  RX queues=1 - RX desc=128 - RX free threshold=0
  RX threshold registers: pthresh=0 hthresh=0 wthresh=0
  TX queues=1 - TX desc=512 - TX free threshold=0
  TX threshold registers: pthresh=0 hthresh=0 wthresh=0
  TX RS bit threshold=0 - TXQ flags=0x0
Press enter to exit

Telling cores to stop...
Waiting for lcores to finish...



  +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
  RX-packets: 0              RX-dropped: 0             RX-total: 0
  TX-packets: 0              TX-dropped: 0             TX-total: 0
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Done.

Bye...
it is not working now , I do not know why


On Sat, Oct 29, 2016 at 9:13 AM, shokoofeh nobahari <sh.nobahari65 at gmail.com<mailto:sh.nobahari65 at gmail.com>> wrote:
Hi Reshma
Sory for delay in response ,I change the OS system of my server and I am working to set up DPDK again from the base !
I will send the startup logs of testpmd and dpdk-pdump as soon as posible!
thank you very much

On Thu, Oct 27, 2016 at 8:13 PM, Pattan, Reshma <reshma.pattan at intel.com<mailto:reshma.pattan at intel.com>> wrote:
Hi ,

Resending the mail again.. Can you provide me below info to help you in finding the issue?
Do you have libpcap development files  installed on your machine.?
Can you send me the startup logs of testpmd and dpdk-pdump tool. I will take a look.

Thanks,
Reshma


From: Pattan, Reshma
Sent: Wednesday, October 26, 2016 11:37 AM
To: 'shokoofeh nobahari' <sh.nobahari65 at gmail.com<mailto:sh.nobahari65 at gmail.com>>
Subject: RE: DPDPK-PDUMP not creating rx file

Hi,
Hi

From: shokoofeh nobahari [mailto:sh.nobahari65 at gmail.com]
Sent: Tuesday, October 25, 2016 6:20 PM
To: Pattan, Reshma <reshma.pattan at intel.com<mailto:reshma.pattan at intel.com>>
Subject: DPDPK-PDUMP not creating rx file

Hi Reshma
yes firs i run testpmd , everything was working with dpdk and then i run dpak-pdump , but no response !
yes that is a typing issue ! the pcap file w

Do you have libpcap development files  installed on your machine.?
Can you send me the startup logs of testpmd and dpdk-pdump tool. I will take a look.

Thanks,
Reshma


On Tuesday, October 25, 2016, Pattan, Reshma <reshma.pattan at intel.com<mailto:reshma.pattan at intel.com>> wrote:
Hi,

> -----Original Message-----
> From: users [mailto:users-bounces at dpdk.org] On Behalf Of shokoofeh nobahari
> Sent: Tuesday, October 25, 2016 12:46 PM
> To: users at dpdk.org<mailto:users at dpdk.org>
> Subject: [dpdk-users] DPDPK-PDUMP not creating rx file
>
> Dear all
> I am executing DPDK 16.07 on a physical ubuntu server with 2 Intel NIC and I
> need to capture the traffic to pcap files so I am using pdump API.
> I also set CONFIG_RTE_LIBRTE_PMD_PCAP=y in common-base file in config
> directory of DPDK and recompile the build.
> dpdk-pdump is running and working but it is not creating the rx.pcap file .

I assume you are running testpmd first and then dpdk-pdump tool, is that correct?
Also I see you are using rx-dev as rx-1-file.pcap but not rx.pcap file. So you should look for file
rx-1-file.pcap but not rx.pcap, or is that a typo in your sentence?

> My command is like below:
>
> ./dpdk-pdump -c 3 -n 2 -- --pdump 'device_id=0e:00.0,queue=*,rx- dev=/tmp/rx-
> 1-file.pcap'
>
>
> I will be very grateful if you can help me with this situation !
> thank you all





More information about the users mailing list