From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 005DB5902 for ; Fri, 11 Apr 2014 06:13:01 +0200 (CEST) Received: by mail-wg0-f50.google.com with SMTP id x13so4768703wgg.33 for ; Thu, 10 Apr 2014 21:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=MEJjxZlqXraLRWPzHtQlVunuFAlaOgmH/iAuB2mnzP0=; b=Oeeh1LCcc0KZVkPthEOjgCeMPP7/srobTlV9AYDscjCTiy8YQ7c6hVA7vUQfkdPbP1 rinl/xoRqwTVj3YEkUajzFD/Og9CahQLjcDVdDtEAydx47TPjFaqShRCQdLsQrUfEULU +R6Hsh+ZIAN+qWSoTXCySYgh6rULlW/SvRfF+w+oDJHnDB513lovco2b+6CiOdSDQJVD BP9WRBU5hsm3yvN9O9wiQGb1mzxe1CBRDy27Pi5Z/gi27cgGUY/Wo8forsAAvHLfY8rA QBZ2Q+fvEKBrAmCcrh8Z5e041JFpGTgJAdmbs15uh9haxLhv0JNLcjdURBSM+jq0V67f PuHA== MIME-Version: 1.0 X-Received: by 10.194.80.7 with SMTP id n7mr18697874wjx.8.1397189679173; Thu, 10 Apr 2014 21:14:39 -0700 (PDT) Received: by 10.216.192.196 with HTTP; Thu, 10 Apr 2014 21:14:39 -0700 (PDT) In-Reply-To: References: Date: Fri, 11 Apr 2014 09:44:39 +0530 Message-ID: From: Vivek Soni To: dev@dpdk.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Issue with l2fwd in kvm guest X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2014 04:13:02 -0000 Ajith, You are missing "-p PORTMASK" command line argument. Since you are binding two ports to IGB_UIO, you should add -p 0x3 to the command line. You can check the example command from sample applications user guide. $ ./build/l2fwd -c 1 -n 4 -- -p 3 Regards, Vivek On Fri, Apr 11, 2014 at 9:34 AM, Ajith Adapa wrote: > Hi, > > I am just trying out DPDK in a fedora 18 KVM guest and have an issue when I > am trying l2fwd application. > > I am binding eth1, eth2 interfaces using below commands > > ./igb_uio_bind.py --bind=igb_uio eth1 > ./igb_uio_bind.py --bind=igb_uio eth2 > > When I run l2fwd app I get following error > > ./l2fwd -c 1 -n 4 > EAL: Cannot read numa node link for lcore 0 - using physical package id > instead > EAL: Detected lcore 0 as core 0 on socket 0 > EAL: Setting up memory... > EAL: cannot open /proc/self/numa_maps, consider that all memory is in > socket_id 0 > EAL: Ask a virtual area of 0x18800000 bytes > EAL: Virtual area found at 0x9dc00000 (size = 0x18800000) > EAL: Ask a virtual area of 0x400000 bytes > EAL: Virtual area found at 0x9d400000 (size = 0x400000) > EAL: Ask a virtual area of 0x400000 bytes > EAL: Virtual area found at 0x9cc00000 (size = 0x400000) > EAL: Requesting 100 pages of size 4MB from socket 0 > EAL: TSC frequency is ~3191735 KHz > EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable > clock cycles ! > EAL: Master core 0 is ready (tid=b7782800) > EAL: PCI device 0000:00:03.0 on NUMA socket -1 > EAL: probe driver: 1af4:1000 rte_virtio_pmd > EAL: 0000:00:03.0 not managed by UIO driver, skipping > EAL: PCI device 0000:00:07.0 on NUMA socket -1 > EAL: probe driver: 8086:100e rte_em_pmd > EAL: PCI memory mapped at 0xb7732000 > EAL: PCI device 0000:00:08.0 on NUMA socket -1 > EAL: probe driver: 8086:100e rte_em_pmd > EAL: PCI memory mapped at 0xb7712000 > Skipping disabled port 0 > Skipping disabled port 1 > EAL: Error - exiting with code: 1 > Cause: All available ports are disabled. Please set portmask. > > Dmesg logs after binding eth1 and eth2 to igb_uio > > [ 5.700591] e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow > Control: RX > [ 5.733457] e1000: eth2 NIC Link is Up 1000 Mbps Full Duplex, Flow > Control: RX > [ 55.835017] igb_uio: module verification failed: signature and/or > required key missing - tainting kernel > [ 55.835888] Use MSIX interrupt by default > [ 56.035098] igb_uio 0000:00:07.0: setting latency timer to 64 > [ 56.035123] fail to enable pci msix, or not enough msix entries > [ 56.035492] uio device registered with irq a > [ 56.184789] igb_uio 0000:00:08.0: setting latency timer to 64 > [ 56.184811] fail to enable pci msix, or not enough msix entries > [ 56.184969] uio device registered with irq b > [ 589.675041] Bits 55-60 of /proc/PID/pagemap entries are about to stop > being page-shift some time soon. See the linux/Documentation/vm/pagemap.txt > for details. > > Can anyone point me to right direction regarding where I am doing the > mistake ? > > Regards, > Ajith >