DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Lu, Patrick" <patrick.lu@intel.com>
To: Raj Ravi <mekaviraj@gmail.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] l2fwd application - packets not getting forwarded
Date: Sun, 22 Jun 2014 06:09:36 +0000	[thread overview]
Message-ID: <EFC7DD9FAC418F4683FA895DBD8B35A30E1CC85F@FMSMSX101.amr.corp.intel.com> (raw)

You can also pass iommu=pt, then you can keep intel_iommu=on and have dpdk co-exist on native and virtialized.

Patrick

On Jun 15, 2014 11:08 PM, Raj Ravi <mekaviraj@gmail.com> wrote:
I can get this working after some changes.

1. I have pci_assign=buses and intel_iommu=on 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 application.

Now, I can see the packets getting forwarded using l2fwd application and able
to observe the packets using tcpdump.

Yes, as you said, ping is not getting reply back. but it is getting forwarded to
the other end ( observed using tcpdump).

Thanks!


On Fri, Jun 13, 2014 at 10:39 PM, Richardson, Bruce
<bruce.richardson@intel.com> 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 forwarded
>>
>> 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<http://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 switches 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

             reply	other threads:[~2014-06-22  6:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-22  6:09 Lu, Patrick [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-06-12 19:47 Raj Ravi
2014-06-13  1:06 ` Raj Ravi
2014-06-13  1:34   ` Raj Ravi
2014-06-13 17:09     ` Richardson, Bruce
2014-06-16  6:07       ` Raj Ravi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EFC7DD9FAC418F4683FA895DBD8B35A30E1CC85F@FMSMSX101.amr.corp.intel.com \
    --to=patrick.lu@intel.com \
    --cc=dev@dpdk.org \
    --cc=mekaviraj@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).