From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f175.google.com (mail-qk0-f175.google.com [209.85.220.175]) by dpdk.org (Postfix) with ESMTP id 035122C6D for ; Fri, 13 Jan 2017 12:01:20 +0100 (CET) Received: by mail-qk0-f175.google.com with SMTP id s140so50388617qke.0 for ; Fri, 13 Jan 2017 03:01:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=OwapzSmT9GuCMymzY82PYikcI5DSB0RviWVDyUlPNEk=; b=c31meg529JB+bV8CSqo2QPeSRuAINSVRWvfbSuYoc6s/bZJcBKbPU1oxlwRSZu7BmZ B0dyNhbRq/FRTKVbKnXZp1UYJFZudEy58kzW99OsJz6097+LjEKR1NWAWts1ozk1XwLh ugGx+rGtsxoJtsYjMYFG+vC5Sv3wX9Le4WElN1/0jm414DtdKaBisNWoOAdcxaO55lFQ +pdV0p0FsblxvMpB0bCp537HYz3kHZaH4l33gLUHbkbFOJbdC7WsFXJiNyLvvip+hCLI WgraxlKi1eCwVk+iF6Nm7KQZU1xCr5KEHphOPl3oTwydHbcdlqFiRvr/6+I86rrYnuBm xpww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=OwapzSmT9GuCMymzY82PYikcI5DSB0RviWVDyUlPNEk=; b=oFvqqsiX6jOSszgNTlguf9RtFh7zF0fu7uEVkNEtD+sK2vji9UJ0KPHTMe3xAfR+zm VuioqO8IzPCSTyAFB/xSy3FTsOUJcpTZS1QtbO12ffDuVzGCogsgkwrG4KYH94lT6q3n cJT62WeXoAbfjV+8VoXW3G8mDXTl6pjWpKTrNbtZr/Ck+Ah9gdzIHGw92tSbgJnUsHoL xMqf0NFZoMaxadOvv4PkTIBblQlIyb0KW8Q5kYfGdxTnAj6ls7c2gFrasj+GSMO1gQQp IgGnsqN4eVNmR8olU19pDbqunUdJ7NxhdQBCfq6c5k8ZfqftBOCFiOShB594gIrEqqHn QN5A== X-Gm-Message-State: AIkVDXKmX0CVfz+hsmd1YEZF/NqxXYqoquH8h6p5B8rA3Cs0dGy42o+lmraWzLzar7XJ95wv8NkPjfSDYVQeIg== X-Received: by 10.55.18.165 with SMTP id 37mr17787807qks.22.1484305280258; Fri, 13 Jan 2017 03:01:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.108.7 with HTTP; Fri, 13 Jan 2017 03:01:19 -0800 (PST) In-Reply-To: <74d60b2109824fcdad5dbef5a04b27d3@EUX13SRV1.EU.NEC.COM> References: <74d60b2109824fcdad5dbef5a04b27d3@EUX13SRV1.EU.NEC.COM> From: Marco Kwok Date: Fri, 13 Jan 2017 19:01:19 +0800 Message-ID: To: David Aldrich Cc: "users@dpdk.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Newbie: Help requested to get l2fwd example working X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: maruko.kwok@gmail.com List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2017 11:01:21 -0000 Hello, I am new here too. I am also playing with this example but my environment is different from you which is ubuntu 16.04 and dpdk 16.07.2. My example works fine with the parameters you given above. Hugepages and drivers is correct. Do you see any EAL: message when starting the program? Best, Mark 2017-01-13 16:12 GMT+08:00 David Aldrich : > Hi > > To get familiar with DPDK, I am running the l2fwd example on a PC running > Wind River Linux and fitted with an HP 560SFP+ 2-port NIC. I enable one > port for l2fwd and send UDP packets to it from another PC. The problem is > that the l2fwd example does not report these packets in its statistics - it > reports 0 packets received. I would like some advice on how to debug this > please. > > Here's some more information: > > I have a bash script that initialises the dpdk environment and calls > dpdk_nic_bind.py. The output looks ok and is shown at the end of this email. > > I run l2fwd as follows: > > build/l2fwd -c f -n2 -- -q 1 -p 2 > > This runs the example on 2 lcores, 1 port (the second one) and 1 rx queue > per lcore. > > On the sending PC I have added an arp entry for the remote port and, using > Wireshark, I can see that the UDP packet is sent with the correct MAC > address. > > So all seems set up ok, but l2fwd does not see a packet. Please can > someone help me with this? > > Best regards > > David > > Output of bash script > ================= > > # ./leda_dpdk_setup.sh > Using directory: /root/dpdk-2.2.0/x86_64-native-linuxapp-gcc > HugePages_Total: 28 > HugePages_Free: 0 > HugePages_Rsvd: 0 > HugePages_Surp: 0 > Hugepagesize: 1048576 kB > trying to remove old igb_uio module and may get an error message, ignore > it trying to remove old rte_kni module and may get an error message, ignore > it > > Network devices using DPDK-compatible driver ============================== > ============== > 0000:04:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio > unused=windrvr1221 > 0000:04:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=igb_uio > unused=windrvr1221 > > Network devices using kernel driver > =================================== > 0000:09:00.0 'I210 Gigabit Network Connection' if=eth0 drv=igb > unused=windrvr1221,igb_uio > 0000:0a:00.0 'I210 Gigabit Network Connection' if=eth1 drv=igb > unused=windrvr1221,igb_uio *Active* > > Other network devices > ===================== > > > Command 'lspci | grep Ether' output for reference > 04:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ > Network Connection (rev 01) > 04:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ > Network Connection (rev 01) > 09:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network > Connection (rev 03) > 0a:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network > Connection (rev 03) root@localhost:~# >