Re: [dpdk-dev] [PATCH] examples/load_balancer: enable the build for lesser lcores

2017-07-19 Thread Hemant Agrawal
On 7/19/2017 10:51 AM, Thomas Monjalon wrote: 17/07/2017 11:41, Hemant Agrawal: --- a/examples/load_balancer/main.h +++ b/examples/load_balancer/main.h #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 -#i

Re: [dpdk-dev] [PATCH] examples/load_balancer: enable the build for lesser lcores

2017-07-18 Thread Thomas Monjalon
17/07/2017 11:41, Hemant Agrawal: > --- a/examples/load_balancer/main.h > +++ b/examples/load_balancer/main.h > #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 > -#if (APP_MAX_IO_LCORES > APP_MAX_

[dpdk-dev] [PATCH] examples/load_balancer: enable the build for lesser lcores

2017-07-17 Thread Hemant Agrawal
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 --- examples/load_balancer/main.h | 10 ++ 1 file changed, 6 insertions(+), 4 d