X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=examples%2Fexception_path%2Fmain.c;h=9ab5054e3261b71dcaad18712041699203341406;hb=refs%2Ftags%2Fupstream%2F16.11.8;hp=e70549bee812ecb1fe6769ebc1bb2172e301fb14;hpb=43192222b329b3c984687235b0081c7fbfe484ba;p=deb_dpdk.git diff --git a/examples/exception_path/main.c b/examples/exception_path/main.c index e70549be..9ab5054e 100644 --- a/examples/exception_path/main.c +++ b/examples/exception_path/main.c @@ -165,6 +165,9 @@ print_stats(void) " Lcore Port RX TX Dropped on TX\n" "------- ------ ------------ ------------ ---------------\n"); RTE_LCORE_FOREACH(i) { + /* limit ourselves to application supported cores only */ + if (i >= APP_MAX_LCORE) + break; printf("%6u %7u %13"PRIu64" %13"PRIu64" %16"PRIu64"\n", i, (unsigned)port_ids[i], lcore_stats[i].rx, lcore_stats[i].tx,