From e62c5a12d9f40f3969d6e0d8c49bd575ea6f01dc Mon Sep 17 00:00:00 2001 From: Ivan Ilchenko Date: Thu, 15 Oct 2020 14:30:43 +0100 Subject: [PATCH] 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 --- app/test-pmd/testpmd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.20.1