eal/windows: improve CPU and NUMA node detection
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Mon, 15 Jun 2020 00:43:51 +0000 (03:43 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 15 Jun 2020 17:29:39 +0000 (19:29 +0200)
commitb8a36b08662541c68a403036a0ba7bf08fb1028c
tree1f3dfcfe1d21dd1814c6d59d7a84ebaa46a1bcc3
parentb831cfd23a74a8952b83d2f3667f989e5d4a6195
eal/windows: improve CPU and NUMA node detection

1. Map CPU cores to their respective NUMA nodes as reported by system.
2. Support systems with more than 64 cores (multiple processor groups).
3. Fix magic constants, styling issues, and compiler warnings.
4. Add EAL private function to map DPDK socket ID to NUMA node number.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
lib/librte_eal/windows/eal.c
lib/librte_eal/windows/eal_lcore.c
lib/librte_eal/windows/eal_windows.h