[dpdk-dev] DPDK Port Mirroring

2015-07-10 Thread Bruce Richardson
Laswell; Wiles, Keith; dev at dpdk.org; Assaad, Sami (Sami) > > Subject: Re: [dpdk-dev] DPDK Port Mirroring > > > On Fri, Jul 10, 2015 at 01:46:21PM +, Sanford, Robert wrote: > > > Silly questions: Why use rte_pktmbuf_clone()? Assuming that one is not > &

[dpdk-dev] DPDK Port Mirroring

2015-07-10 Thread Bruce Richardson
On Fri, Jul 10, 2015 at 01:46:21PM +, Sanford, Robert wrote: > Silly questions: Why use rte_pktmbuf_clone()? Assuming that one is not > going to modify the mbuf at all, why not just increment the reference > count with rte_mbuf_refcnt_update()? > Yep, that should work fine too. /Bruce > -- >

[dpdk-dev] DPDK Port Mirroring

2015-07-10 Thread Assaad, Sami (Sami)
ardson [mailto:bruce.richardson at intel.com] > Sent: Friday, July 10, 2015 9:48 AM > To: Sanford, Robert > Cc: Matt Laswell; Wiles, Keith; dev at dpdk.org; Assaad, Sami (Sami) > Subject: Re: [dpdk-dev] DPDK Port Mirroring > On Fri, Jul 10, 2015 at 01:46:21PM +, Sanford, Robert wrote: >

[dpdk-dev] DPDK Port Mirroring

2015-07-10 Thread Sanford, Robert
Silly questions: Why use rte_pktmbuf_clone()? Assuming that one is not going to modify the mbuf at all, why not just increment the reference count with rte_mbuf_refcnt_update()? -- Thanks, Robert >Keith speaks truth. If I were going to do what you're describing, I would >do the following: >

[dpdk-dev] DPDK Port Mirroring

2015-07-09 Thread Assaad, Sami (Sami)
Big Thanks! Sami. From: Matt Laswell [mailto:lasw...@infiniteio.com] Sent: Thursday, July 09, 2015 4:28 PM To: Wiles, Keith Cc: Assaad, Sami (Sami); dev at dpdk.org; Richardson, Bruce Subject: Re: [dpdk-dev] DPDK Port Mirroring Keith speaks truth. If I were going to do what you're describing

[dpdk-dev] DPDK Port Mirroring

2015-07-09 Thread Wiles, Keith
On 7/9/15, 12:26 PM, "dev on behalf of Assaad, Sami (Sami)" 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

[dpdk-dev] DPDK Port Mirroring

2015-07-09 Thread Assaad, Sami (Sami)
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

[dpdk-dev] DPDK Port Mirroring

2015-07-09 Thread Matt Laswell
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