examples/qos_sched: fix build for less lcores
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 this loop for (i = 0; i < APP_MAX_LCORE; i++) {" Fixes: d52b5e735aa3 ("examples/qos_sched: fix lcore limit") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
This commit is contained in:
parent
af35e12191
commit
e481ebfd62
@ -69,8 +69,13 @@ extern "C" {
|
||||
#define BURST_TX_DRAIN_US 100
|
||||
|
||||
#ifndef APP_MAX_LCORE
|
||||
#if (RTE_MAX_LCORE > 64)
|
||||
#define APP_MAX_LCORE 64
|
||||
#else
|
||||
#define APP_MAX_LCORE RTE_MAX_LCORE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define MAX_DATA_STREAMS (APP_MAX_LCORE/2)
|
||||
#define MAX_SCHED_SUBPORTS 8
|
||||
#define MAX_SCHED_PIPES 4096
|
||||
|
Loading…
x
Reference in New Issue
Block a user