[dpdk-dev] Capture packets using DPDK
K Rahul
krahul at noida.interrasystems.com
Wed Sep 23 15:13:37 CEST 2015
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 at 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
More information about the dev
mailing list