Re: [dpdk-dev] [RFC v2 02/17] mempool: add op to calculate memory size to be allocated

2018-01-31 Thread Andrew Rybchenko
On 01/31/2018 07:45 PM, Olivier Matz wrote: On Tue, Jan 23, 2018 at 01:15:57PM +, Andrew Rybchenko wrote: diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index e783b9a..1f54f95 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool

Re: [dpdk-dev] [RFC v2 02/17] mempool: add op to calculate memory size to be allocated

2018-01-31 Thread Olivier Matz
On Tue, Jan 23, 2018 at 01:15:57PM +, Andrew Rybchenko wrote: > Size of memory chunk required to populate mempool objects depends > on how objects are stored in the memory. Different mempool drivers > may have different requirements and a new operation allows to > calculate memory size in accor

[dpdk-dev] [RFC v2 02/17] mempool: add op to calculate memory size to be allocated

2018-01-23 Thread Andrew Rybchenko
Size of memory chunk required to populate mempool objects depends on how objects are stored in the memory. Different mempool drivers may have different requirements and a new operation allows to calculate memory size in accordance with driver requirements and advertise requirements on minimum memor