* [dpdk-dev] Capture packets using DPDK
@ 2015-09-23 13:13 K Rahul
2015-09-23 17:56 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: K Rahul @ 2015-09-23 13:13 UTC (permalink / raw)
To: dev; +Cc: Priyankar Ghosh, Ramandeep Sandhu
Hello,
We are building a real-time application to monitor IP packets. This
application captures packets on UDP which are received by joining
multicast sessions.
We have downloaded DPDK v2.1.0 and built it with target
'x86_64-native-linuxapp-gcc' using the setup.sh script provided in tools
directory. We are using 64-bit Centos 6.5 with kernel version 2.6.32 and
we had set the number of hugepages (per node) to 512. Our capture card
is *Broadcom NetXtreme II BCM5709 Gigabit Ethernet* on which we want to
use dpdk and the system config is i7 quad-core@3.4Ghz with
Hyperthreading ON, which supports 2MB hugepages.
We have gone through the DPDK
documentation(http://dpdk.readthedocs.org/en/latest). Using the
dpdk_nic_bind.py script, We were able to bind */uio_pci_generic/* driver
with *Broadcom NetXtreme II*, which was also reflected by the script
using the '--status' argument.
To test dpdk, I have built pktgen v2.9.2 application and also gone
through pktgen documentation(http://pktgen.readthedocs.org/en/latest).
But whenever I run the command ' ./ pktgen -c 0x1f -n 3 -- -P -m
"[1:3].0" ' I get the following error:
/>>> 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: [./pktgen() [0x42f825]]//
//5: [/lib64/libc.so.6(__libc_start_main+0xfd) [0x7ff3c9727d5d]]//
//4: [./pktgen(main+0x489) [0x42e0f9]]//
//3: [./pktgen(pktgen_config_ports+0x118b) [0x4504eb]]//
//2: [./pktgen(__rte_panic+0xc9) [0x428f95]]//
//1: [./pktgen(rte_dump_stack+0x16) [0x4ef116]]//
//Aborted (core dumped)/
Is there any way to find the ports available that can be used by DPDK
applications, or is there any way to configure ports?
From the documentation mentioned above
(http://dpdk.readthedocs.org/en/latest), we were not able to proceed any
further. Any help on how to use DPDK step by step will be appreciated.
Regards,
K Rahul
Interra Systems
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] Capture packets using DPDK
2015-09-23 13:13 [dpdk-dev] Capture packets using DPDK K Rahul
@ 2015-09-23 17:56 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2015-09-23 17:56 UTC (permalink / raw)
To: K Rahul; +Cc: dev, Priyankar Ghosh, Ramandeep Sandhu
On Wed, 23 Sep 2015 18:43:37 +0530
K Rahul <krahul@noida.interrasystems.com> wrote:
> We have downloaded DPDK v2.1.0 and built it with target
> 'x86_64-native-linuxapp-gcc' using the setup.sh script provided in tools
> directory. We are using 64-bit Centos 6.5 with kernel version 2.6.32 and
> we had set the number of hugepages (per node) to 512. Our capture card
> is *Broadcom NetXtreme II BCM5709 Gigabit Ethernet* on which we want to
> use dpdk and the system config is i7 quad-core@3.4Ghz with
> Hyperthreading ON, which supports 2MB hugepages.
The bnx2x driver only supports the Broadcom 10G cards, not the 1G cards.
If you look at Linux you will see the 1G cards use a different driver (bnx2)
than the 10G cards (bnx2x).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-23 17:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-23 13:13 [dpdk-dev] Capture packets using DPDK K Rahul
2015-09-23 17:56 ` Stephen Hemminger
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).