Re: [dpdk-dev] [PATCH v3] examples/qos_sched: fix core limit for lower num of lcore

2017-07-21 Thread Thomas Monjalon
19/07/2017 11:13, Hemant Agrawal: > APP_MAX_LCORES is hardcoded as 64. > This will cause build err when RTE_MAX_LCORE is less then 64. > > "args.c:127:22: error: iteration 8 invokes undefined behavior > [-Werror=aggressive-loop-optimizations] >if (cfg->lcore_role[i] == ROLE_RTE) >

[dpdk-dev] [PATCH v3] examples/qos_sched: fix core limit for lower num of lcore

2017-07-19 Thread Hemant Agrawal
APP_MAX_LCORES is hardcoded as 64. This will cause build err when RTE_MAX_LCORE is less then 64. "args.c:127:22: error: iteration 8 invokes undefined behavior [-Werror=aggressive-loop-optimizations] if (cfg->lcore_role[i] == ROLE_RTE) ~~~^~~ args.c:126:2: note: within