From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout1.ltindia.com (mailout1.ltindia.com [203.199.60.132]) by dpdk.org (Postfix) with ESMTP id BF4D0C3E2 for ; Fri, 23 Oct 2015 09:03:21 +0200 (CEST) Received: from unknown (HELO POCITMSEXHUB01.LntUniverse.com) ([10.2.1.58]) by mailout1.ltindia.com with ESMTP; 23 Oct 2015 12:33:20 +0530 Received: from POCITMSEXMB08.LntUniverse.com ([fe80::9445:cfb3:b5b:f4c9]) by POCITMSEXHUB01 ([10.2.1.58]) with mapi id 14.03.0181.006; Fri, 23 Oct 2015 12:33:09 +0530 From: Vamsi Kommana To: "users@dpdk.org" Thread-Topic: DPDK-PKTGEN- Did not find any ports to use Thread-Index: AdENYAaqjL7rfS83ScyddmJo6P5I6Q== Date: Fri, 23 Oct 2015 07:03:19 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.2.1.127] MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] DPDK-PKTGEN- Did not find any ports to use X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2015 07:03:33 -0000 Hi Team, I was trying to install DPDK-Pktgen(Pktgen version 2.7.7 using DPDK-1.7.1) for testing 10G Ethernet ports using NIC card, with 4 cores(1: Kernel 1:logs for pktgen 2:for Tx Rx of traffic). But i was ending up with "*** Did not find any ports to use ***" while I wa= s using the below mentioned command Command: -------- ./app/build/pktgen -c 0x0c -n 3 --proc-type auto -m 512 --file-prefix pg -- -T -P -m "2.0,3.1" collected logs are as below... -----------------------# oot@localhost pktgen]# BSD LICENSEpktgen]# oot@localhost pktgen]# Copyright(c) 2010-2014 Intel Corporation. All rights reserved. All rights reserved. oot@localhost pktgen]# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:st pktgen]# oot@localhost pktgen]# * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.]# * Neither the name of Intel Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. oot@localhost pktgen]# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. oot@localhost pktgen]# -----------------------# ./app/build/pktgen -c 0x0c -n 3 --proc-type auto -= m 512 --file-prefix pg -- -T -P -m "2.0,3.1" Copyright (c) <2010-2014>, Wind River Systems, Inc. All rights reserved= . Redistribution and use in source and binary forms, with or without mod= ification, are permitted provided that the following conditions are met: 1) Redistributions of source code must retain the above copyright no= tice, this list of conditions and the following disclaimer. 2) Redistributions in binary form must reproduce the above copyright= notice, this list of conditions and the following disclaimer in the docum= entation and/or other materials provided with the distribution. 3) Neither the name of Wind River Systems nor the names of its contr= ibutors may be used to endorse or promote products derived from this software wi= thout specific prior written permission. 4) The screens displayed by the application must contain the copyrig= ht notice as defined above and can not be removed without specific prior written permi= ssion. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "A= S IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, = THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PUR= POSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS= BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CO= NSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOOD= S OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOW= EVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIA= BILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF = THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAG= E. Pktgen 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: Detected lcore 2 as core 0 on socket 0 EAL: Detected lcore 3 as core 1 on socket 0 EAL: Support maximum 64 logical core(s) by configuration. EAL: Detected 4 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 0x800000 bytes EAL: Virtual area found at 0x7f071ca00000 (size =3D 0x800000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f071c600000 (size =3D 0x200000) EAL: Ask a virtual area of 0x49800000 bytes EAL: Virtual area found at 0x7f06d2c00000 (size =3D 0x49800000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f06d2800000 (size =3D 0x200000) EAL: Ask a virtual area of 0x35400000 bytes EAL: Virtual area found at 0x7f069d200000 (size =3D 0x35400000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f069ce00000 (size =3D 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f069ca00000 (size =3D 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f069c600000 (size =3D 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7f069c200000 (size =3D 0x200000) EAL: Requesting 256 pages of size 2MB from socket 0 EAL: TSC frequency is ~3092981 KHz EAL: Master core 2 is ready (tid=3D1d745880) EAL: Core 3 is ready (tid=3D1bdfe700) EAL: PCI device 0000:01:00.0 on NUMA socket -1 EAL: probe driver: 8086:1528 rte_ixgbe_pmd EAL: 0000:01:00.0 not managed by UIO driver, skipping EAL: PCI device 0000:01:00.1 on NUMA socket -1 EAL: probe driver: 8086:1528 rte_ixgbe_pmd EAL: 0000:01:00.1 not managed by UIO driver, skipping 2.0 =3D lcores(rx 0000000000000004, tx 0000000000000004) ports= (rx 0000000000000001, tx 0000000000000001) 3.1 =3D lcores(rx 0000000000000008, tx 0000000000000008) ports= (rx 0000000000000002, tx 0000000000000002) ! ! ! 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() [0x422c25]] 5: [/lib64/libc.so.6(__libc_start_main+0xf5) [0x3b37821d65]] 4: [./app/build/pktgen(main+0x463) [0x4226f3]] 3: [./app/build/pktgen(pktgen_config_ports+0xf71) [0x439111]] 2: [./app/build/pktgen(__rte_panic+0xc9) [0x42210f]] 1: [./app/build/pktgen(rte_dump_stack+0x18) [0x4b58b8]] Aborted (core dumped) [root@localhost pktgen]# [root@localhost pktgen]# On googling i found the issues might be due to binding and when i tried the= below steps i was ending up with binding failed and logs are as below [root@localhost tools]# ./dpdk_nic_bind.py --status Network devices using DPDK-compatible driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:00:19.0 '82579LM Gigabit Network Connection' if=3Dem1 drv=3De1000e unu= sed=3Digb_uio 0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=3Dp1p1 drv=3Dixgb= e unused=3Digb_uio 0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' if=3Dp1p2 drv=3Dixgb= e unused=3Digb_uio 0000:02:00.0 'VT6105/VT6106S [Rhine-III]' if=3Dp33p1 drv=3Dvia-rhine unused= =3Digb_uio *Active* Other network devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [root@localhost tools]# ./dpdk_nic_bind.py -bind=3Digb_uio p1p2 Error: bind failed for 0000:01:00.1 - Cannot open /sys/bus/pci/drivers/ind= =3Digb_uio/bind Error: unbind failed for 0000:01:00.1 - Cannot open /sys/bus/pci/drivers//u= nbind [root@localhost tools]# [root@localhost tools]# Please let me know if i miss any... Thanks in advance. Kommana L&T Technology Services Ltd www.LntTechservices.com This Email may contain confidential or privileged information for the inten= ded recipient (s). If you are not the intended recipient, please do not use= or disseminate the information, notify the sender and delete it from your = system.