[dpdk-dev] rte_pktmbuf_alloc fails

Meir Tseitlin mirots at gmail.com
Tue Apr 1 13:53:47 CEST 2014


I think I found the problem - it was solved by manually calling
rte_pktmbuf_free for each packet.
It seems that rte_pktmbuf_free is not automatically called from
within rte_eth_tx_burst if packets are sent to pcap device.

Is it possible?


On Tue, Apr 1, 2014 at 2:08 PM, Meir Tseitlin <mirots at gmail.com> wrote:

> Hi,
>
> I modified l2fwd example to "inject" additional Ethernet packets into the
> flow by allocating them with rte_pktmbuf_alloc.
>
> I do succeed to call rte_pktmbuf_alloc when none (or almost none) packets
> where forwarded since application start, but it fails when application is
> busy handling traffic (even light traffic).
>
> Following Intel developers guide suggestion about thread safety, I am
> calling this function within the same CPU core I am about to send the
> packet.
>
> Any ideas?
>
> Thanks
> Meir Tseitlin
>



-- 
Kind regards,
*Meir Tseitlin*
Software architect*Mobile:* +972.54.7647417
*Fax:* +972.72.2812365
*Email:* meir.tech at gmail.com
 *http://il.linkedin.com/in/meirts <http://il.linkedin.com/in/meirts>*
*Independent consultant*
<http://maps.google.com/maps?q=&hl=en>
See who we know in
common<http://www.linkedin.com/e/wwk/6408776/?hs=false&tok=2g4qg82N8Sb5U1>Want
a signature like
this?<http://www.linkedin.com/e/sig/6408776/?hs=false&tok=20mz9jA_USb5U1>


More information about the dev mailing list