From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cluster-a.mailcontrol.com (cluster-a.mailcontrol.com [85.115.52.190]) by dpdk.org (Postfix) with ESMTP id 61010689B for ; Fri, 13 Jan 2017 09:12:13 +0100 (CET) Received: from mail1.neceur.com (mail1.neceur.com [195.47.207.3]) by rly30a.srv.mailcontrol.com (MailControl) with ESMTP id v0D8CCUC039172 for ; Fri, 13 Jan 2017 08:12:12 GMT Received: from intmail2.neceur.com (intmail2.neceur.com [172.29.177.11]) by mail1.neceur.com (8.14.4/8.14.4) with ESMTP id v0D8CC74013013 for ; Fri, 13 Jan 2017 08:12:12 GMT Received: from av2.neceur.com (av2.neceur.com [172.29.177.7]) by intmail2.neceur.com (8.14.7/8.14.7) with ESMTP id v0D8pxvr005560 for ; Fri, 13 Jan 2017 08:51:59 GMT Received: from av2.neceur.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5AF1DCA051 for ; Fri, 13 Jan 2017 08:12:12 +0000 (GMT) Received: from av2.neceur.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4A268CA050 for ; Fri, 13 Jan 2017 08:12:12 +0000 (GMT) Received: from EUX13SRV2.EU.NEC.COM (unknown [172.29.155.139]) by av2.neceur.com (Postfix) with ESMTPS for ; Fri, 13 Jan 2017 08:12:12 +0000 (GMT) Received: from EUX13SRV1.EU.NEC.COM (172.29.155.138) by EUX13SRV2.EU.NEC.COM (172.29.155.139) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Fri, 13 Jan 2017 08:12:12 +0000 Received: from EUX13SRV1.EU.NEC.COM ([172.29.155.138]) by EUX13SRV1.EU.NEC.COM ([172.29.155.138]) with mapi id 15.00.1156.000; Fri, 13 Jan 2017 08:12:11 +0000 From: David Aldrich To: "users@dpdk.org" Thread-Topic: Newbie: Help requested to get l2fwd example working Thread-Index: AdJs9I8zPh51A3u5SPmlI9v30LCE1QAgB68g Date: Fri, 13 Jan 2017 08:12:11 +0000 Message-ID: <74d60b2109824fcdad5dbef5a04b27d3@EUX13SRV1.EU.NEC.COM> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.29.155.232] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Scanned-By: MailControl 44278.1917 (www.mailcontrol.com) on 10.65.0.140 Subject: [dpdk-users] Newbie: Help requested to get l2fwd example working X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2017 08:12:13 -0000 Hi=20 To get familiar with DPDK, I am running the l2fwd example on a PC running W= ind River Linux and fitted with an HP 560SFP+ 2-port NIC. I enable one por= t for l2fwd and send UDP packets to it from another PC. The problem is tha= t the l2fwd example does not report these packets in its statistics - it re= ports 0 packets received. I would like some advice on how to debug this pl= ease. Here's some more information: I have a bash script that initialises the dpdk environment and calls dpdk_n= ic_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 p= er lcore. =20 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 addre= ss. So all seems set up ok, but l2fwd does not see a packet. Please can someon= e help me with this? Best regards David Output of bash script =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # ./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 i= t 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 0000:04:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=3Digb_uio= unused=3Dwindrvr1221 0000:04:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection' drv=3Digb_uio= unused=3Dwindrvr1221 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:09:00.0 'I210 Gigabit Network Connection' if=3Deth0 drv=3Digb unused= =3Dwindrvr1221,igb_uio 0000:0a:00.0 'I210 Gigabit Network Connection' if=3Deth1 drv=3Digb unused= =3Dwindrvr1221,igb_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 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 Connect= ion (rev 03) 0a:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connect= ion (rev 03) root@localhost:~#