bitmap: support 128-byte cacheline in empty check
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Tue, 5 Jan 2021 08:57:29 +0000 (14:27 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 17 Jan 2021 21:40:15 +0000 (22:40 +0100)
commitd70e87907aa849342d964dd3054fd93c78ee11c7
tree5a467c31ae29e0fee5681b9d54c8d720b1474474
parent5e9647fd5a1a1427d926f16ea3a9e77a82bbaad6
bitmap: support 128-byte cacheline in empty check

Currently bitmap line not empty check API assumes cache line
of 64B and only checks 8 slabs. Since in 128B cacheline, we
have 16 slabs per cacheline, rte_bitmap_clear() will mark
complete line as empty as soon as 8 slabs are empty thereby
breaking bitmap scan functionality. Fix it by defining new
__rte_bitmap_line_not_empty() for 128B cacheline platform.

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_eal/include/rte_bitmap.h