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

2020-04-07 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

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

2020-04-09 Thread Dumitrescu, Cristian
Hi Sunaming, > -Original Message- > From: Suanming Mou > Sent: Wednesday, April 8, 2020 4:06 AM > To: Dumitrescu, Cristian > Cc: dev@dpdk.org; a...@semihalf.com > Subject: [PATCH v2 1/2] bitmap: add create bitmap with all bits set > > Currently, in the case to use bitmap as resource all

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

2020-04-10 Thread Suanming Mou
> -Original Message- > From: Dumitrescu, Cristian > Sent: Thursday, April 9, 2020 10:16 PM > To: Suanming Mou > Cc: dev@dpdk.org; a...@semihalf.com > Subject: RE: [PATCH v2 1/2] bitmap: add create bitmap with all bits set > > Hi Sunaming, > > > -Original Message- > > From: Su

Re: [dpdk-dev] [PATCH v2 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 11:34 AM > To: Dumitrescu, Cristian > Cc: dev@dpdk.org; a...@semihalf.com > Subject: RE: [PATCH v2 1/2] bitmap: add create bitmap with all bits set > > > > > -Original Message- > > From: Dumitrescu, Cri

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

2020-04-10 Thread Suanming Mou
Hi Cristian Thanks for the suggestion. Will update the v3 patch. BR SuanmingMou > -Original Message- > From: Dumitrescu, Cristian > Sent: Friday, April 10, 2020 7:21 PM > To: Suanming Mou > Cc: dev@dpdk.org; a...@semihalf.com > Subject: RE: [PATCH v2 1/2] bitmap: add create bitmap with