Re: [dpdk-dev] [PATCH] mem: fix division by zero in no-NUMA mode

2018-11-26 Thread Thomas Monjalon
26/11/2018 12:14, Hunt, David: > Hi Anatoly, > > On 26/11/2018 10:57 AM, Anatoly Burakov wrote: > > When RTE_EAL_NUMA_AWARE_HUGEPAGES is set to "n", not all memtypes > > will be valid, because we skip some due to not supporting other > > NUMA nodes, leading to a division by zero error down the lin

Re: [dpdk-dev] [PATCH] mem: fix division by zero in no-NUMA mode

2018-11-26 Thread Hunt, David
Hi Anatoly, On 26/11/2018 10:57 AM, Anatoly Burakov wrote: When RTE_EAL_NUMA_AWARE_HUGEPAGES is set to "n", not all memtypes will be valid, because we skip some due to not supporting other NUMA nodes, leading to a division by zero error down the line because the necessary memtype fields weren't

[dpdk-dev] [PATCH] mem: fix division by zero in no-NUMA mode

2018-11-26 Thread Anatoly Burakov
When RTE_EAL_NUMA_AWARE_HUGEPAGES is set to "n", not all memtypes will be valid, because we skip some due to not supporting other NUMA nodes, leading to a division by zero error down the line because the necessary memtype fields weren't populated. Fix it by limiting number of memtypes to number of