<div dir="ltr">In addition to this, we should probably clone pkt mbuf using <font face="arial, sans-serif">rte_pktmbuf_clone() and transmit the cloned packet. This will avoid having to copy the mac and IP headers.  </font><div class="gmail_extra">
<br></div><div class="gmail_extra">-Dongsu<br><br><div class="gmail_quote">On Mon, May 6, 2013 at 9:56 AM, Adrien Mazarguil <span dir="ltr"><<a href="mailto:adrien.mazarguil@6wind.com" target="_blank">adrien.mazarguil@6wind.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi all (replying below)<br>
<div class="im"><br>
On Mon, May 06, 2013 at 09:28:33AM -0400, Han, Dongsu wrote:<br>
> Sounds good. With the two bug fixes I submitted txonly now runs perfectly.<br>
> Thanks!<br>
> -Dongsu<br>
> On May 6, 2013 8:47 AM, "Thomas Monjalon" <<a href="mailto:thomas.monjalon@6wind.com">thomas.monjalon@6wind.com</a>> wrote:<br>
><br>
> > Hi Dongsu Han,<br>
> ><br>
> > I think your fix is right.<br>
> > I've just removed tx_mbuf_alloc() and directly called rte_pktmbuf_alloc()<br>
> > instead.<br>
> > Is it OK for you ?<br>
> > Could you also review this (modified) description ?<br>
</div>[...]<br>
<br>
While using rte_pktmbuf_alloc() is the correct fix, it's much slower than<br>
__rte_mbuf_raw_alloc() due to the unnecessary call to rte_pktmbuf_reset().<br>
<br>
Since testpmd is often used for performance testing, we should consider a<br>
wrapper function calling __rte_mbuf_raw_alloc() directly instead, as in<br>
rte_rxmbuf_alloc() implemented in igb and ixgbe PMDs.<br>
<span class=""><font color="#888888"><br>
--<br>
Adrien Mazarguil<br>
6WIND<br>
</font></span><div class=""><div class="h5">_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@dpdk.org">dev@dpdk.org</a><br>
<a href="http://dpdk.org/ml/listinfo/dev" target="_blank">http://dpdk.org/ml/listinfo/dev</a><br>
</div></div></blockquote></div><br></div></div>