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 <hemant.agrawal@nxp.com>
This commit is contained in:
parent
59bcf8084f
commit
af35e12191
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user