[dpdk-dev] Is rte_mempool library is multi-thread safe ???

Peter Chen peter.feifan.chen at gmail.com
Thu Dec 19 22:30:42 CET 2013


does that mean that on the same core, we can't do rte_eth_rx_burst in one
thread (I assume this function allocates from mempool for storing mbufs
everytime it receives a packet), while another thread calls
rte_pktmbuf_alloc from the same mem_pool?


On Thu, Dec 19, 2013 at 9:04 AM, Thomas Monjalon
<thomas.monjalon at 6wind.com>wrote:

> Hello,
>
> 19/12/2013 11:57, ankit kumar :
> > It was working fine but i am not sure that memory allocation &
> > deallocation in rte_mempool library, is multi-thread safe or not.
>
> From http://dpdk.org/doc/api/rte__mempool_8h.html:
>         "the mempool implementation is not preemptable"
> There is more explanations in this email:
>         http://dpdk.org/ml/archives/dev/2013-August/000402.html
>
> --
> Thomas
>


More information about the dev mailing list