From: Matt Laswell <laswell@infiniteio.com>
To: "Wiles, Keith" <keith.wiles@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
"Assaad, Sami \(Sami\)" <sami.assaad@alcatel-lucent.com>
Subject: Re: [dpdk-dev] DPDK Port Mirroring
Date: Thu, 9 Jul 2015 15:27:45 -0500 [thread overview]
Message-ID: <CA+GnqAq3wVaiLgwTdK9CuabBo43wQthZCLJqFmVcfZt5fwD4sw@mail.gmail.com> (raw)
In-Reply-To: <D1C44095.24284%keith.wiles@intel.com>
Keith speaks truth. If I were going to do what you're describing, I would
do the following:
1. Start with the l2fwd example application.
2. Remove the part where it modifies the ethernet MAC address of received
packets.
3. Add a call in to clone mbufs via rte_pktmbuf_clone() and send the cloned
packets out of the port of your choice
As long as you don't need to modify the packets - and if you're mirroring,
you shouldn't - simply cloning received packets and sending them out your
mirror port should get you most of the way there.
On Thu, Jul 9, 2015 at 3:17 PM, Wiles, Keith <keith.wiles@intel.com> wrote:
>
>
> On 7/9/15, 12:26 PM, "dev on behalf of Assaad, Sami (Sami)"
> <dev-bounces@dpdk.org on behalf of sami.assaad@alcatel-lucent.com> wrote:
>
> >Hello,
> >
> >I want to build a DPDK app that is able to port-mirror all ingress
> >traffic from two 10G interfaces.
> >
> >1. Is it possible in port-mirroring traffic consisting of 450byte
> >packets at 20G without losing more than 5% of traffic?
> >
> >2. Would you have any performance results due to packet copying?
>
> Do you need to copy the packet if you increment the reference count you
> can send the packet to both ports without having to copy the packet.
> >
> >3. Would you have any port mirroring DPDK sample code?
>
> DPDK does not have port mirroring example, but you could grab the l2fwd or
> l3fwd and modify it to do what you want.
> >
> >Thanks in advance.
> >
> >Best Regards,
> >Sami Assaad.
>
>
next prev parent reply other threads:[~2015-07-09 20:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 20:17 Wiles, Keith
2015-07-09 20:27 ` Matt Laswell [this message]
2015-07-09 20:30 ` Assaad, Sami (Sami)
2015-07-10 13:46 ` Sanford, Robert
2015-07-10 13:47 ` Bruce Richardson
2015-07-10 14:21 ` Assaad, Sami (Sami)
2015-07-10 14:36 ` Bruce Richardson
-- strict thread matches above, loose matches on Subject: below --
2015-07-09 17:26 Assaad, Sami (Sami)
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=CA+GnqAq3wVaiLgwTdK9CuabBo43wQthZCLJqFmVcfZt5fwD4sw@mail.gmail.com \
--to=laswell@infiniteio.com \
--cc=dev@dpdk.org \
--cc=keith.wiles@intel.com \
--cc=sami.assaad@alcatel-lucent.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).