summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/pmalloc.c
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2021-04-20 18:08:45 +0200
committerDamjan Marion <dmarion@me.com>2021-04-20 17:25:57 +0000
commitec62af52992edba6b407e5ba540a2435f15b7c8d (patch)
treed5433a5bbcbad2ec30e934e27c594dba65d7721e /src/vppinfra/pmalloc.c
parentf9e02772bc90a5995202d23bf98199cba07f3d2f (diff)
pmalloc: tolerate move_pages failure on numa node #0
Type: fix Change-Id: I65dbc4f3db47c745a0187e015845e07b3b0568e5 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vppinfra/pmalloc.c')
-rw-r--r--src/vppinfra/pmalloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vppinfra/pmalloc.c b/src/vppinfra/pmalloc.c
index 27738e15f47..e5fdc2654d5 100644
--- a/src/vppinfra/pmalloc.c
+++ b/src/vppinfra/pmalloc.c
@@ -309,7 +309,8 @@ pmalloc_map_pages (clib_pmalloc_main_t * pm, clib_pmalloc_arena_t * a,
to support non-numa kernels */
clib_mem_get_page_stats (va, CLIB_MEM_PAGE_SZ_DEFAULT, 1, &stats);
- if (stats.per_numa[numa_node] != 1)
+ if (stats.per_numa[numa_node] != 1 &&
+ !(numa_node == 0 && stats.unknown == 1))
{
u16 allocated_at = ~0;
if (stats.unknown)