From b58c9c3677718164e98dd2536add5f06f44134e9 Mon Sep 17 00:00:00 2001 From: Andriy Berestovskyy Date: Fri, 31 Mar 2017 15:36:32 +0200 Subject: [PATCH] examples/ip_pipeline: support more than 32 CPUs At the moment ip_pipeline example uses 32 during the initialization, which leads to an error on systems with more than 32 CPUs. Signed-off-by: Andriy Berestovskyy Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/ip_pipeline/init.c b/examples/ip_pipeline/init.c index c7f9470e90..1dc2a04220 100644 --- a/examples/ip_pipeline/init.c +++ b/examples/ip_pipeline/init.c @@ -69,7 +69,8 @@ static void app_init_core_map(struct app_params *app) { APP_LOG(app, HIGH, "Initializing CPU core map ..."); - app->core_map = cpu_core_map_init(4, 32, 4, 0); + app->core_map = cpu_core_map_init(RTE_MAX_NUMA_NODES, RTE_MAX_LCORE, + 4, 0); if (app->core_map == NULL) rte_panic("Cannot create CPU core map\n"); -- 2.20.1