Re: [dpdk-dev] [PATCH v3 1/2] bitmap: add create bitmap with all bits set

2020-04-10 Thread Dumitrescu, Cristian
> -Original Message- > From: Suanming Mou > Sent: Friday, April 10, 2020 1:46 PM > To: Dumitrescu, Cristian ; dev@dpdk.org > Cc: a...@semihalf.com > Subject: [PATCH v3 1/2] bitmap: add create bitmap with all bits set > > Currently, in the case to use bitmap as resource allocator, after

[dpdk-dev] [PATCH v3 1/2] bitmap: add create bitmap with all bits set

2020-04-10 Thread Suanming Mou
Currently, in the case to use bitmap as resource allocator, after bitmap creation, all the bitmap bits should be set to indicate the bit available. Every time when allocate one bit, search for the set bits and clear it to make it in use. Add a new rte_bitmap_init_with_all_set() function to have a