summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Berestovskyy <andriy.berestovskyy@caviumnetworks.com>2017-03-31 15:36:32 +0200
committerThomas Monjalon <thomas@monjalon.net>2017-04-21 02:15:03 +0200
commitb58c9c3677718164e98dd2536add5f06f44134e9 (patch)
treeafa6c0b2c1b13d14be45bc0bc986e89631a325a5
parentd5faec799c6edcb65773db0c99202a9d5da8bac4 (diff)
downloaddpdk-b58c9c3677718164e98dd2536add5f06f44134e9.zip
dpdk-b58c9c3677718164e98dd2536add5f06f44134e9.tar.gz
dpdk-b58c9c3677718164e98dd2536add5f06f44134e9.tar.xz
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 <andriy.berestovskyy@caviumnetworks.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
-rw-r--r--examples/ip_pipeline/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/ip_pipeline/init.c b/examples/ip_pipeline/init.c
index c7f9470..1dc2a04 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");