X-Git-Url: https://gerrit.fd.io/r/gitweb?p=deb_dpdk.git;a=blobdiff_plain;f=examples%2Fqos_sched%2Fmain.h;fp=examples%2Fqos_sched%2Fmain.h;h=8d02e1ade75ee10dd6e8e8f89fd02a396865372a;hp=c7490c61d18ec2a23aa38f2d8496fa6f2c530df2;hb=90fb1fd9c01fbb2f44af75c63adb65d721da88ff;hpb=bf7567fd2a5b0b28ab724046143c24561d38d015 diff --git a/examples/qos_sched/main.h b/examples/qos_sched/main.h index c7490c61..8d02e1ad 100644 --- a/examples/qos_sched/main.h +++ b/examples/qos_sched/main.h @@ -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