eal/windows: fix CPU cores counting
authorNarcisa Vasile <navasile@microsoft.com>
Wed, 18 Aug 2021 13:46:00 +0000 (06:46 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 11 Oct 2021 16:52:56 +0000 (18:52 +0200)
commit694c81721ef0a04432cd725642cfe74075a32f19
tree96a82a7325d8beadbd35467d23369255a55aaa82
parent34f92e82dda40c3e86771cdde692a3395d985c13
eal/windows: fix CPU cores counting

On Windows, -l/--lcores EAL option was unable to process CPU sets
containing CPUs other than 0 and 1, because CPU_COUNT() macro
only checked these CPUs in the set. Fix CPU_COUNT() by enumerating
all possible CPU indices.

Fixes: e8428a9d89f1 ("eal/windows: add some basic functions and macros")
Cc: stable@dpdk.org
Signed-off-by: Narcisa Vasile <navasile@microsoft.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Pallavi Kadam <pallavi.kadam@intel.com>
lib/eal/windows/include/sched.h