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

Hemant Agrawal hemant.agrawal at nxp.com
Wed Dec 20 12:59:59 CET 2017


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 of "rte_mempool_populate_phys",
while the elements are getting populated before it in the call of 
mempool_add_elem.

I can use nb_mem_chunks are '0' check. However it can break in future if 
mempool_populate_phys changes.


>
> Thanks
> Regards,
> Hemant
>



More information about the dev mailing list