Re: [dpdk-dev] [PATCH 1/2] mempool: indicate the usages of multi memzones

2018-01-16 Thread Hemant Agrawal
Hi Olivier, On 1/16/2018 7:21 PM, Olivier Matz wrote: On Fri, Dec 22, 2017 at 09:48:01PM +0530, Hemant Agrawal wrote: On 12/22/2017 7:29 PM, Olivier MATZ wrote: On Wed, Dec 20, 2017 at 05:29:59PM +0530, Hemant Agrawal wrote: On 12/19/2017 6:38 PM, Hemant Agrawal wrote: That's true, I comme

Re: [dpdk-dev] [PATCH 1/2] mempool: indicate the usages of multi memzones

2018-01-16 Thread Olivier Matz
On Fri, Dec 22, 2017 at 09:48:01PM +0530, Hemant Agrawal wrote: > On 12/22/2017 7:29 PM, Olivier MATZ wrote: > > On Wed, Dec 20, 2017 at 05:29:59PM +0530, Hemant Agrawal wrote: > > > On 12/19/2017 6:38 PM, Hemant Agrawal wrote: > > > > > > > > > That's true, I commented too fast :) > > > > > And w

Re: [dpdk-dev] [PATCH 1/2] mempool: indicate the usages of multi memzones

2018-01-05 Thread santosh
On Tuesday 19 December 2017 04:32 PM, Olivier MATZ wrote: > On Tue, Dec 19, 2017 at 04:16:33PM +0530, Hemant Agrawal wrote: >> Hi Olivier, >> >> On 12/19/2017 3:54 PM, Olivier MATZ wrote: >>> Hi Hemant, >>> >>> On Wed, Dec 06, 2017 at 06:01:12PM +0530, Hemant Agrawal wrote: This is required f

Re: [dpdk-dev] [PATCH 1/2] mempool: indicate the usages of multi memzones

2017-12-22 Thread Hemant Agrawal
On 12/22/2017 7:29 PM, Olivier MATZ wrote: On Wed, Dec 20, 2017 at 05:29:59PM +0530, Hemant Agrawal wrote: On 12/19/2017 6:38 PM, Hemant Agrawal wrote: That's true, I commented too fast :) And what about using mp->nb_mem_chunks instead? Would it do the job in your use-case? It should work.

Re: [dpdk-dev] [PATCH 1/2] mempool: indicate the usages of multi memzones

2017-12-22 Thread Olivier MATZ
On Wed, Dec 20, 2017 at 05:29:59PM +0530, Hemant Agrawal wrote: > On 12/19/2017 6:38 PM, Hemant Agrawal wrote: > > > > > That's true, I commented too fast :) > > > And what about using mp->nb_mem_chunks instead? Would it do the job > > > in your use-case? > > > > It should work. Let me check it

Re: [dpdk-dev] [PATCH 1/2] mempool: indicate the usages of multi memzones

2017-12-20 Thread Hemant Agrawal
On 12/19/2017 6:38 PM, Hemant Agrawal wrote: That's true, I commented too fast :) And what about using mp->nb_mem_chunks instead? Would it do the job in your use-case? It should work. Let me check it out. There is a slight problem with nb_mem_chunks. It is getting incremented in the end o

Re: [dpdk-dev] [PATCH 1/2] mempool: indicate the usages of multi memzones

2017-12-19 Thread Hemant Agrawal
That's true, I commented too fast :) And what about using mp->nb_mem_chunks instead? Would it do the job in your use-case? It should work. Let me check it out. Thanks Regards, Hemant

Re: [dpdk-dev] [PATCH 1/2] mempool: indicate the usages of multi memzones

2017-12-19 Thread Olivier MATZ
On Tue, Dec 19, 2017 at 04:16:33PM +0530, Hemant Agrawal wrote: > Hi Olivier, > > On 12/19/2017 3:54 PM, Olivier MATZ wrote: > > Hi Hemant, > > > > On Wed, Dec 06, 2017 at 06:01:12PM +0530, Hemant Agrawal wrote: > > > This is required for the optimizations w.r.t hw mempools. > > > They will use d

Re: [dpdk-dev] [PATCH 1/2] mempool: indicate the usages of multi memzones

2017-12-19 Thread Hemant Agrawal
Hi Olivier, On 12/19/2017 3:54 PM, Olivier MATZ wrote: Hi Hemant, On Wed, Dec 06, 2017 at 06:01:12PM +0530, Hemant Agrawal wrote: This is required for the optimizations w.r.t hw mempools. They will use different kind of optimizations if the buffers are from single contiguous memzone. Signed-o

Re: [dpdk-dev] [PATCH 1/2] mempool: indicate the usages of multi memzones

2017-12-19 Thread Olivier MATZ
Hi Hemant, On Wed, Dec 06, 2017 at 06:01:12PM +0530, Hemant Agrawal wrote: > This is required for the optimizations w.r.t hw mempools. > They will use different kind of optimizations if the buffers > are from single contiguous memzone. > > Signed-off-by: Hemant Agrawal > --- > lib/librte_mempoo

[dpdk-dev] [PATCH 1/2] mempool: indicate the usages of multi memzones

2017-12-06 Thread Hemant Agrawal
This is required for the optimizations w.r.t hw mempools. They will use different kind of optimizations if the buffers are from single contiguous memzone. Signed-off-by: Hemant Agrawal --- lib/librte_mempool/rte_mempool.c | 7 +-- lib/librte_mempool/rte_mempool.h | 5 + 2 files changed,