[dpdk-users] 3rd party PMDs

2016-11-01 Thread Thomas Monjalon
2016-11-01 14:19, Radley Kneeland:
> Does dpdk have a way to integrate/link third party PMDs that does not
> require placing them within the dpdk source tree?
> 
> currently using dpdk-16.07

Yes it works.

However it is generally better to submit your PMD here.


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

2016-11-01 Thread Pattan, Reshma
Hi,

My replies inline.

Thanks,
Reshma

From: shokoofeh nobahari [mailto:sh.nobahar...@gmail.com]
Sent: Sunday, October 30, 2016 7:11 AM
To: Pattan, Reshma 
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 :0e:00.0 on NUMA socket -1
EAL:   probe driver: 8086:105e rte_em_pmd
EAL: PCI device :0e:00.1 on NUMA socket -1
EAL:   probe driver: 8086:105e rte_em_pmd
Interactive-mode selected
USER1: create a new mbuf pool : 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: 131RX-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: 131RX-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 :0e:00.0 on NUMA socket -1
EAL:   probe driver: 8086:105e rte_em_pmd
EAL: PCI device :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__);
}

[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 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 :0e:00.0 on NUMA socket -1
EAL:   probe driver: 8086:105e rte_em_pmd
EAL: PCI device :0e:00.1 on NUMA socket -1
EAL:   probe driver: 8086:105e 

[dpdk-users] 3rd party PMDs

2016-11-01 Thread Radley Kneeland
Does dpdk have a way to integrate/link third party PMDs that does not
require placing them within the dpdk source tree?

currently using dpdk-16.07