From: Ivan Ilchenko Date: Thu, 15 Oct 2020 13:30:43 +0000 (+0100) Subject: app/testpmd: check stop call status X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e62c5a12d9f40f3969d6e0d8c49bd575ea6f01dc;p=dpdk.git app/testpmd: 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/testpmd according to new return type. Signed-off-by: Ivan Ilchenko Signed-off-by: Andrew Rybchenko --- diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 00cffaed5a..94e36886b6 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -2806,7 +2806,9 @@ stop_port(portid_t pid) } } - rte_eth_dev_stop(pi); + if (rte_eth_dev_stop(pi) != 0) + RTE_LOG(ERR, EAL, "rte_eth_dev_stop failed for port %u\n", + pi); if (rte_atomic16_cmpset(&(port->port_status), RTE_PORT_HANDLING, RTE_PORT_STOPPED) == 0)