Re: [dpdk-dev] rte_mempool_get_bulk uses either cache or common pool

2019-10-17 Thread Morten Brørup
> -Original Message- > From: Olivier Matz [mailto:olivier.m...@6wind.com] > Sent: Wednesday, October 16, 2019 9:23 AM > > Hi Morten, > > On Fri, Oct 11, 2019 at 01:24:00PM +0200, Morten Brørup wrote: > > The rte_mempool_get_bulk() documentation says: > > > > "If cache is enabled, objects

Re: [dpdk-dev] rte_mempool_get_bulk uses either cache or common pool

2019-10-16 Thread Olivier Matz
Hi Morten, On Fri, Oct 11, 2019 at 01:24:00PM +0200, Morten Brørup wrote: > The rte_mempool_get_bulk() documentation says: > > "If cache is enabled, objects will be retrieved first from cache, > subsequently from the common pool." > > But __mempool_generic_get() only uses the cache if the reque

[dpdk-dev] rte_mempool_get_bulk uses either cache or common pool

2019-10-11 Thread Morten Brørup
The rte_mempool_get_bulk() documentation says: "If cache is enabled, objects will be retrieved first from cache, subsequently from the common pool." But __mempool_generic_get() only uses the cache if the request is smaller than the cache size. If not, objects will be retrieved from the common p