]> git.droids-corp.org - dpdk.git/commitdiff
examples/ip_pipeline: support more than 32 CPUs
authorAndriy Berestovskyy <andriy.berestovskyy@caviumnetworks.com>
Fri, 31 Mar 2017 13:36:32 +0000 (15:36 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 21 Apr 2017 00:15:03 +0000 (02:15 +0200)
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 <andriy.berestovskyy@caviumnetworks.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/ip_pipeline/init.c

index c7f9470e901ec85be3028894c53824aae4eaa367..1dc2a042203dc24c2cce095639d6d65af1e4d8a5 100644 (file)
@@ -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");