From: Wisam Jaddo Date: Sun, 14 Mar 2021 09:54:24 +0000 (+0200) Subject: app/flow-perf: skip dumps for masked ports X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b22a5a1e565e634829ba5f0bf54175080002bdcd;p=dpdk.git app/flow-perf: skip dumps for masked ports Take into consideration that the user may call portmask for any run, thus the app should always check if port is needed to collect and report or not. Fixes: 070316d01d3e ("app/flow-perf: add multi-core rule insertion and deletion") Fixes: d8099d7ecbd0 ("app/flow-perf: split dump functions") Cc: stable@dpdk.org Signed-off-by: Wisam Jaddo Acked-by: Alexander Kozyrev --- diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c index 55c8d18805..9f0d056fbc 100644 --- a/app/test-flow-perf/main.c +++ b/app/test-flow-perf/main.c @@ -1434,6 +1434,9 @@ run_rte_flow_handler_cores(void *data __rte_unused) rte_eal_mp_wait_lcore(); RTE_ETH_FOREACH_DEV(port) { + /* If port outside portmask */ + if (!((ports_mask >> port) & 0x1)) + continue; if (has_meter()) dump_used_cpu_time("Meters:", port, &mc_pool.meters_record);