Re: [dpdk-dev] [RFC 3/4] mempool: introduce function to get mempool page size

2019-10-28 Thread Olivier Matz
On Wed, Aug 07, 2019 at 06:21:41PM +0300, Andrew Rybchenko wrote: > On 7/19/19 4:38 PM, Olivier Matz wrote: > > In rte_mempool_populate_default(), we determine the page size, > > which is needed for calc_size and allocation of memory. > > > > Move this in a function and export it, it will be used

Re: [dpdk-dev] [RFC 3/4] mempool: introduce function to get mempool page size

2019-08-07 Thread Andrew Rybchenko
On 7/19/19 4:38 PM, Olivier Matz wrote: In rte_mempool_populate_default(), we determine the page size, which is needed for calc_size and allocation of memory. Move this in a function and export it, it will be used in next commit. The major change here is taking page sizes into account even in

[dpdk-dev] [RFC 3/4] mempool: introduce function to get mempool page size

2019-07-19 Thread Olivier Matz
In rte_mempool_populate_default(), we determine the page size, which is needed for calc_size and allocation of memory. Move this in a function and export it, it will be used in next commit. Signed-off-by: Olivier Matz --- lib/librte_mempool/rte_mempool.c | 50 +--