From: Hemant Agrawal Date: Wed, 19 Jul 2017 08:19:35 +0000 (+0530) Subject: examples/load_balancer: fix build for less lcores X-Git-Tag: spdx-start~2373 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=af35e12191f5817c38b37b0ea1142bcd19e30c74;p=dpdk.git examples/load_balancer: fix build for less lcores load_balancer app can also work for lower number of cores. Limit the cores Worker and IO cores to 16 as defined in original App. Otherwise use the actual number of lcores as MAX. Signed-off-by: Hemant Agrawal --- diff --git a/examples/load_balancer/main.h b/examples/load_balancer/main.h index d98468a7c0..dc407555d7 100644 --- a/examples/load_balancer/main.h +++ b/examples/load_balancer/main.h @@ -56,7 +56,11 @@ #endif #ifndef APP_MAX_IO_LCORES +#if (APP_MAX_LCORES > 16) #define APP_MAX_IO_LCORES 16 +#else +#define APP_MAX_IO_LCORES APP_MAX_LCORES +#endif #endif #if (APP_MAX_IO_LCORES > APP_MAX_LCORES) #error "APP_MAX_IO_LCORES is too big" @@ -74,7 +78,11 @@ #endif #ifndef APP_MAX_WORKER_LCORES +#if (APP_MAX_LCORES > 16) #define APP_MAX_WORKER_LCORES 16 +#else +#define APP_MAX_WORKER_LCORES APP_MAX_LCORES +#endif #endif #if (APP_MAX_WORKER_LCORES > APP_MAX_LCORES) #error "APP_MAX_WORKER_LCORES is too big"