From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arkajit Ghosh Subject: [ dpdk-pktgen execution issue ] Error: Didn't find any ports to use Date: Mon, 2 Feb 2015 14:40:42 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: Arkajit Ghosh To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: References: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi, Facing issue during the execution of dpdk-pktgen in VM. Please find the bel= ow details: Setup details: > Executing in Guest machine (VM). > Having 2 logical core. >Configured 2048 km hugepages >Number of processor: 2 Scenario to verify: Generate=A0some packets by dpdk-pktgen and then one dpd= k-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 =A0 =A0 Bridge "ovsbr0" =A0 =A0 =A0 =A0 Port "dpdkr2" =A0 =A0 =A0 =A0 =A0 =A0 Interface "dpdkr2" =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 type: dpdk =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 options: {port=3D"2"} =A0 =A0 =A0 =A0 Port "ovsbr0" =A0 =A0 =A0 =A0 =A0 =A0 Interface "ovsbr0" =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 type: internal =A0 =A0 =A0 =A0 Port "dpdkr1" =A0 =A0 =A0 =A0 =A0 =A0 Interface "dpdkr1" =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 type: dpdk =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 options: {port=3D"1"} root@tcs-VirtualBox:/usr/src/pktgen-DPDK/dpdk/examples/pktgen#=A0 Added the Flow Entrys: =A0 =A0# Add flows between port 1 (dpdk0) to port 2 (dpdk1) =A0 =A0./ovs-ofctl add-flow=A0ovsbr0=A0in_port=3D1,action=3Doutput:2 =A0 =A0./ovs-ofctl add-flow=A0ovsbr0=A0in_port=3D2,action=3Doutput:1 dpdk-pktgen execution error: =A0Pktgen created by: Keith Wiles -- >>> Powered by Intel=AE 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: =A0 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 =3D 0x200000) EAL: Ask a virtual area of 0x400000 bytes EAL: Virtual area found at 0x7f282be00000 (size =3D 0x400000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f282ba00000 (size =3D 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f282b600000 (size =3D 0x200000) EAL: Ask a virtual area of 0x400000 bytes EAL: Virtual area found at 0x7f282b000000 (size =3D 0x400000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f282ac00000 (size =3D 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f282a800000 (size =3D 0x200000) EAL: Ask a virtual area of 0x400000 bytes EAL: Virtual area found at 0x7f282a200000 (size =3D 0x400000) EAL: Ask a virtual area of 0x800000 bytes EAL: Virtual area found at 0x7f2829800000 (size =3D 0x800000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f2829400000 (size =3D 0x200000) EAL: Ask a virtual area of 0x1e00000 bytes EAL: Virtual area found at 0x7f2827400000 (size =3D 0x1e00000) EAL: Ask a virtual area of 0xc00000 bytes EAL: Virtual area found at 0x7f2826600000 (size =3D 0xc00000) EAL: Ask a virtual area of 0x1000000 bytes EAL: Virtual area found at 0x7f2825400000 (size =3D 0x1000000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f2825000000 (size =3D 0x200000) EAL: Ask a virtual area of 0xc00000 bytes EAL: Virtual area found at 0x7f2824200000 (size =3D 0xc00000) EAL: Ask a virtual area of 0xe00000 bytes EAL: Virtual area found at 0x7f2823200000 (size =3D 0xe00000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f2822e00000 (size =3D 0x200000) EAL: Requesting 60 pages of size 2MB from socket 0 EAL: TSC frequency is ~2979222 KHz EAL: WARNING: cpu flags constant_tsc=3Dyes nonstop_tsc=3Dno -> using unreli= able clock cycles ! EAL: Master core 1 is ready (tid=3D2d914840) 0.1 =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D lcores(rx 0000000000000001, tx 000000000= 0000001) ports(rx 0000000000000002, tx 0000000000000002) 1.2 =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D lcores(rx 0000000000000002, tx 000000000= 0000002) ports(rx 0000000000000004, tx 0000000000000004) Lua 5.2.3 =A0Copyright (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: =A03613 Aborted =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (core d= umped) ./app/build/pktgen -c 0x2 -n 2 --proc-type auto -- -m "0.1,1.2" ############################################### Please suggest how to proceed and also feel free to do mention if I missed = anything as I am new to this area.=A0 Thanks & Regards Arkajit Ghosh Mailto: arkajit.ghosh-/cgKlWMm3F8@public.gmane.org Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Consulting ____________________________________________ =3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D 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