From: Ivan Ilchenko Date: Thu, 15 Oct 2020 13:30:42 +0000 (+0100) Subject: app/flow-perf: check stop call status X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5a3f9f7f9c96314aa5121d62faaf2b866fcce34c;p=dpdk.git app/flow-perf: check stop call status rte_eth_dev_stop() return value was changed from void to int, so this patch modify usage of this function across app/flow-perf according to new return type. Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko --- diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c index c420da6a57..2189b945de 100644 --- a/app/test-flow-perf/main.c +++ b/app/test-flow-perf/main.c @@ -1450,7 +1450,8 @@ main(int argc, char **argv) RTE_ETH_FOREACH_DEV(port) { rte_flow_flush(port, &error); - rte_eth_dev_stop(port); + if (rte_eth_dev_stop(port) != 0) + printf("Failed to stop device on port %u\n", port); rte_eth_dev_close(port); } return 0;