eal: use correct data type for bitmap slab operations
authorVivek Sharma <vivek.sharma@caviumnetworks.com>
Tue, 25 Sep 2018 09:53:06 +0000 (09:53 +0000)
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>
Mon, 8 Oct 2018 15:51:24 +0000 (17:51 +0200)
commitbed70e5deb1bc927c5adb375d15c1d32c6c137d8
treedb6cd4c849735903d39015f1cd75eec2096cd039
parent662e382244fb29d8bf03113524a139541e10123f
eal: use correct data type for bitmap slab operations

Currently, slab operations use unsigned long data type for 64-bit slab
related operations. On target 'i686-native-linuxapp-gcc', unsigned long
is 32-bit and thus, slab operations breaks on this target. Changing slab
operations to use unsigned long long for correct functioning on
all targets.

Fixes: de3cfa2c9823 ("sched: initial import")
Fixes: 693f715da45c ("remove extra parentheses in return statement")
Cc: stable@dpdk.org
Signed-off-by: Vivek Sharma <vivek.sharma@caviumnetworks.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_eal/common/include/rte_bitmap.h
test/test/test_bitmap.c