From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by dpdk.org (Postfix) with ESMTP id D4CEC2A7 for ; Mon, 16 Jun 2014 08:07:03 +0200 (CEST) Received: by mail-lb0-f179.google.com with SMTP id z11so283969lbi.38 for ; Sun, 15 Jun 2014 23:07:19 -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 :cc:content-type:content-transfer-encoding; bh=ieba/ma240DWSfQRmkUGjupNNrmcG+xlIpCkjGz9aoM=; b=dBGSbEWWDEEvnEb3um733u28Or4KJT64dGxe7BNirDr+r1GjA0RqhUm63x7qRnGlZo NQKuo+7mzs3tsahUjwLirJ0HApeGdj+GdXO1l01vlexKeCVZNT8g/lqaSneHAB40wxpa X5UTMc5pcxEczwJ7ixz+hgWKIk9hCyOVDdmiY0quyBmcLyB6iTK6Lrw+hLocipF7xzhF //Je59j7WNqm4hV8VcmxK5WZj85nHl/62RiS0R3AMfqyY+qU2cG3c6FfibZ+ly9ce7aQ MVLi55quovj/cJJs5SYmcTHY8dRy7XR/UaQumIi77rzTMexkxPVel1S2v0KT0s+M/8R0 Tv1Q== MIME-Version: 1.0 X-Received: by 10.112.201.106 with SMTP id jz10mr249790lbc.62.1402898838925; Sun, 15 Jun 2014 23:07:18 -0700 (PDT) Received: by 10.112.7.234 with HTTP; Sun, 15 Jun 2014 23:07:18 -0700 (PDT) In-Reply-To: <59AF69C657FD0841A61C55336867B5B01AA36038@IRSMSX103.ger.corp.intel.com> References: <59AF69C657FD0841A61C55336867B5B01AA36038@IRSMSX103.ger.corp.intel.com> Date: Mon, 16 Jun 2014 11:37:18 +0530 Message-ID: From: Raj Ravi To: "Richardson, Bruce" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] l2fwd application - packets not getting forwarded 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: Mon, 16 Jun 2014 06:07:04 -0000 I can get this working after some changes. 1. I have pci_assign=3Dbuses and intel_iommu=3Don present in grub.conf , Removed them 2. Before running l2fwd application, removed ixgbe driver. I was actually getting some kernel errors without these steps, while running l2fwd applica= tion. Now, I can see the packets getting forwarded using l2fwd application and ab= le to observe the packets using tcpdump. Yes, as you said, ping is not getting reply back. but it is getting forward= ed to the other end ( observed using tcpdump). Thanks! On Fri, Jun 13, 2014 at 10:39 PM, Richardson, Bruce wrote: >> -----Original Message----- >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Raj Ravi >> Sent: Thursday, June 12, 2014 6:35 PM >> To: dev@dpdk.org >> Subject: Re: [dpdk-dev] l2fwd application - packets not getting forwarde= d >> >> Is there any requirement to modify l2fwd appliucation with updated mac >> address to make it work ? >> >> In one example, it is mentioned something similar. >> www.slideshare.net/hisaki/intel-dpdk-step-by-step-instructions >> >> >> Also, in order to make ping work it is necessary to add static entry >> for those IP addresses ? >> >> Please let me know. Thanks, >> > Hi, > > In terms of using ping: the Intel DPDK works below the IP level, and the = basic l2fwd sample app has no concept of an IP address or what an ICMP ping= message is, so you won't get a proper ping reply out of the application as= there is no IP stack to reply. What it will do, its take the ping message = and forward it out a different port. > > As for the more basic question of receiving packets on the NIC, normally,= yes, you would need to set the destination mac address of your packets to = match that of the NIC port, but in this case I believe the l2fwd app switch= es the port to promiscuous mode so it should receive all packets sent to it= . [Other sample apps often need a "-P" flag passed to them to do this.] > > Regards, > /Bruce