150339cc59
The loop here was counting the bytes in the cpus array, but the lcores are represented by bits. While here, add a unit test that exposes this bug and demonstrates it is now fixed with this patch. Fixes #1570. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I3a1fc48a8085254f41587e3b3d5d732154b90134 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3931 Community-CI: Mellanox Build Bot Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
base64_neon.c | ||
base64.c | ||
bit_array.c | ||
cpuset.c | ||
crc16.c | ||
crc32_ieee.c | ||
crc32.c | ||
crc32c.c | ||
dif.c | ||
fd.c | ||
file.c | ||
iov.c | ||
Makefile | ||
math.c | ||
pipe.c | ||
spdk_util.map | ||
strerror_tls.c | ||
string.c | ||
util_internal.h | ||
uuid.c |