dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
From: "Wiles, Keith" <keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Arkajit Ghosh <arkajit.ghosh-/cgKlWMm3F8@public.gmane.org>,
	"dev-VfR2kkLFssw@public.gmane.org"
	<dev-VfR2kkLFssw@public.gmane.org>
Subject: Re: [ dpdk-pktgen execution issue ] Error: Didn't find any ports to use
Date: Mon, 2 Feb 2015 14:47:19 +0000	[thread overview]
Message-ID: <D0F4E882.11841%keith.wiles@intel.com> (raw)
In-Reply-To: <OF3A748EE3.3C00DA4B-ON65257DE0.00326B47-65257DE0.00326B49-/cgKlWMm3F8@public.gmane.org>



On 2/2/15, 3:10 AM, "Arkajit Ghosh" <arkajit.ghosh-/cgKlWMm3F8@public.gmane.org> wrote:

>
>Hi,
>
>Facing issue during the execution of dpdk-pktgen in VM. Please find the
>below details:
>
>Setup details:
>
>> Executing in Guest machine (VM).
>> Having 2 logical core.
>>Configured 2048 km hugepages
>>Number of processor: 2
>
>Scenario to verify: Generate some packets by dpdk-pktgen and then one
>dpdk-ports will work as a RX end and other one will be as TX end to
>handle the incoming packets and do the required action.
>
>dpdk-Ports creation: Here is the snapshot
>
>root@tcs-VirtualBox:/usr/src/pktgen-DPDK/dpdk/examples/pktgen#
>/usr/src/ovs/utilities/ovs-vsctl show
>c2245b31-3ca1-49c6-b4c5-1041be5b9dc4
>    Bridge "ovsbr0"
>        Port "dpdkr2"
>            Interface "dpdkr2"
>                type: dpdk
>                options: {port="2"}
>        Port "ovsbr0"
>            Interface "ovsbr0"
>                type: internal
>        Port "dpdkr1"
>            Interface "dpdkr1"
>                type: dpdk
>                options: {port="1"}
>root@tcs-VirtualBox:/usr/src/pktgen-DPDK/dpdk/examples/pktgen#
>
>Added the Flow Entrys:
>
>   # Add flows between port 1 (dpdk0) to port 2 (dpdk1)
>
>   ./ovs-ofctl add-flow ovsbr0 in_port=1,action=output:2
>   ./ovs-ofctl add-flow ovsbr0 in_port=2,action=output:1
>
>
>dpdk-pktgen execution error:
>
> Pktgen created by: Keith Wiles -- >>> Powered by Intel® DPDK <<<
>-----------------------
>EAL: Detected lcore 0 as core 0 on socket 0
>EAL: Detected lcore 1 as core 1 on socket 0
>EAL: Support maximum 64 logical core(s) by configuration.
>EAL: Detected 2 lcore(s)
>EAL: Auto-detected process type: PRIMARY
>EAL:   cannot open VFIO container, error 2 (No such file or directory)
>EAL: VFIO support could not be initialized
>EAL: Setting up memory...
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f282c400000 (size = 0x200000)
>EAL: Ask a virtual area of 0x400000 bytes
>EAL: Virtual area found at 0x7f282be00000 (size = 0x400000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f282ba00000 (size = 0x200000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f282b600000 (size = 0x200000)
>EAL: Ask a virtual area of 0x400000 bytes
>EAL: Virtual area found at 0x7f282b000000 (size = 0x400000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f282ac00000 (size = 0x200000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f282a800000 (size = 0x200000)
>EAL: Ask a virtual area of 0x400000 bytes
>EAL: Virtual area found at 0x7f282a200000 (size = 0x400000)
>EAL: Ask a virtual area of 0x800000 bytes
>EAL: Virtual area found at 0x7f2829800000 (size = 0x800000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f2829400000 (size = 0x200000)
>EAL: Ask a virtual area of 0x1e00000 bytes
>EAL: Virtual area found at 0x7f2827400000 (size = 0x1e00000)
>EAL: Ask a virtual area of 0xc00000 bytes
>EAL: Virtual area found at 0x7f2826600000 (size = 0xc00000)
>EAL: Ask a virtual area of 0x1000000 bytes
>EAL: Virtual area found at 0x7f2825400000 (size = 0x1000000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f2825000000 (size = 0x200000)
>EAL: Ask a virtual area of 0xc00000 bytes
>EAL: Virtual area found at 0x7f2824200000 (size = 0xc00000)
>EAL: Ask a virtual area of 0xe00000 bytes
>EAL: Virtual area found at 0x7f2823200000 (size = 0xe00000)
>EAL: Ask a virtual area of 0x200000 bytes
>EAL: Virtual area found at 0x7f2822e00000 (size = 0x200000)
>EAL: Requesting 60 pages of size 2MB from socket 0
>EAL: TSC frequency is ~2979222 KHz
>EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using
>unreliable clock cycles !
>EAL: Master core 1 is ready (tid=2d914840)
>0.1              = lcores(rx 0000000000000001, tx 0000000000000001)
>ports(rx 0000000000000002, tx 0000000000000002)
>1.2              = lcores(rx 0000000000000002, tx 0000000000000002)
>ports(rx 0000000000000004, tx 0000000000000004)
>
>Lua 5.2.3  Copyright (C) 1994-2013 Lua.org, PUC-Rio
>>>> Packet Burst 32, RX Desc 512, TX Desc 512, mbufs/port 4096, mbuf
>>>>cache 512
>!PANIC!: *** Did not find any ports to use ***
>PANIC in pktgen_config_ports():
>*** Did not find any ports to use ***6: [./app/build/pktgen() [0x414c73]]
>5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)
>[0x7f282c7faec5]]
>4: [./app/build/pktgen(main+0x470) [0x414750]]
>3: [./app/build/pktgen(pktgen_config_ports+0x1007) [0x42b8c7]]
>2: [./app/build/pktgen(__rte_panic+0xc1) [0x414251]]
>1: [./app/build/pktgen(rte_dump_stack+0x18) [0x4a7cd8]]
>./doit.sh: line 24:  3613 Aborted                 (core dumped)
>./app/build/pktgen -c 0x2 -n 2 --proc-type auto -- -m "0.1,1.2"

Pktgen-dpdk uses the first core in the CPU list for display and timers, so
you need to make sure you a lot one extra core for that function.

./app/build/pktgen -c 0x07 -n 2 ‹proc-type auto ‹ -m ³1.0, 2.1²

Note also the ports start at zero to N, notice in the above I skipped core
zero and used 1 and 2 instead.

As for the error above DPDK did not find any ports that were usable and
this normally means the ports have not been attached to the igb_uio device.

Please do the following and show the output:

# lspci | grep Ethernet

# dpdk_nic_bind.py ‹status

Also the Pktgen-dpdk has a readme or you can look at the DPDK docs as well
for more information.

Thanks
++Keith
>
>###############################################
>
>Please suggest how to proceed and also feel free to do mention if I
>missed anything as I am new to this area.
>
>Thanks & Regards
>Arkajit Ghosh
>Mailto: arkajit.ghosh-/cgKlWMm3F8@public.gmane.org
>Website: http://www.tcs.com
>____________________________________________
>Experience certainty.	IT Services
>Business Solutions
>Consulting
>____________________________________________
>=====-----=====-----=====
>Notice: The information contained in this e-mail
>message and/or attachments to it may contain
>confidential or privileged information. If you are
>not the intended recipient, any dissemination, use,
>review, distribution, printing or copying of the
>information contained in this e-mail message
>and/or attachments to it are strictly prohibited. If
>you have received this communication in error,
>please notify us by reply e-mail or telephone and
>immediately and permanently delete the message
>and any attachments. Thank you
>
>

  parent reply	other threads:[~2015-02-02 14:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-02  9:10 [ dpdk-pktgen execution issue ] Error: Didn't find any ports to use Arkajit Ghosh
     [not found] ` <OF3A748EE3.3C00DA4B-ON65257DE0.00326B47-65257DE0.00326B49-/cgKlWMm3F8@public.gmane.org>
2015-02-02 14:47   ` Wiles, Keith [this message]
     [not found] <OFE7B24C00.1A443538-ON65257E05.0031C70E-65257E05.0031C710@LocalDomain>
     [not found] ` <OF3A0C339A.343F3F78-ON65257E04.00257260-65257E04.00283219@LocalDomain>
2015-03-13 10:03   ` Arkajit Ghosh
     [not found]     ` <OFAB435317.976B0656-ON65257E07.003737DD-65257E07.003737DF-/cgKlWMm3F8@public.gmane.org>
2015-03-13 10:32       ` Ngo Doan Lap

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=D0F4E882.11841%keith.wiles@intel.com \
    --to=keith.wiles-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=arkajit.ghosh-/cgKlWMm3F8@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.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).