RE: [PATCH] bitmap: add scan init at given position

2023-06-12 Thread Volodymyr Fialko
Hi Cristian, > > My understanding is your proposed procedure for scanning starting at an > offset is: > 1. Call the new function: __rte_bitmap_scan_init_at() 2. Call the regular > function: rte_bitmap_scan() > > I think this procedure is not ideal, therefore I suggest we create a new API > f

Re: [PATCH] bitmap: add scan init at given position

2023-06-08 Thread Bruce Richardson
itrescu, Cristian ; Volodymyr Fialko > > > > Cc: dev@dpdk.org; jer...@marvell.com; ano...@marvell.com > > Subject: Re: [PATCH] bitmap: add scan init at given position > > > > Cristian, please could you review this patch? > > > > 14/04/2023 10:39, Volod

RE: [PATCH] bitmap: add scan init at given position

2023-06-08 Thread Dumitrescu, Cristian
; Subject: Re: [PATCH] bitmap: add scan init at given position > > Cristian, please could you review this patch? > > 14/04/2023 10:39, Volodymyr Fialko: > > Currently, in the case when we search for a bit set after a particular > > value, the bitmap has to be scanned from the

Re: [PATCH] bitmap: add scan init at given position

2023-06-01 Thread Thomas Monjalon
Cristian, please could you review this patch? 14/04/2023 10:39, Volodymyr Fialko: > Currently, in the case when we search for a bit set after a particular > value, the bitmap has to be scanned from the beginning and > rte_bitmap_scan() has to be called multiple times until we hit the value. > > A

[PATCH] bitmap: add scan init at given position

2023-04-14 Thread Volodymyr Fialko
Currently, in the case when we search for a bit set after a particular value, the bitmap has to be scanned from the beginning and rte_bitmap_scan() has to be called multiple times until we hit the value. Add a new __rte_bitmap_scan_init_at() function to initialize scan state at the given position,