Re: [dpdk-dev] [PATCH v9 09/12] eal/windows: improve CPU and NUMA node detection

2020-06-15 Thread Dmitry Kozlyuk
[snip] > > + rte_errno = EINVAL; > > + return -1; > > + } > > rte_errno is unknown > > It seems to be fixed in patch 12: > > --- a/lib/librte_eal/windows/eal_windows.h > +++ b/lib/librte_eal/windows/eal_windows.h > @@ -9,8 +9,24 @@ > * @file Facilities private to Window

Re: [dpdk-dev] [PATCH v9 09/12] eal/windows: improve CPU and NUMA node detection

2020-06-15 Thread Thomas Monjalon
15/06/2020 02:43, Dmitry Kozlyuk: > + infos_size = 0; > + if (!GetLogicalProcessorInformationEx( > + RelationNumaNode, NULL, &infos_size)) { > + DWORD error = GetLastError(); > + if (error != ERROR_INSUFFICIENT_BUFFER) { > + lo

[dpdk-dev] [PATCH v9 09/12] eal/windows: improve CPU and NUMA node detection

2020-06-14 Thread Dmitry Kozlyuk
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