[dpdk-dev] [PATCH 06/11] kni: check eth dev stop status
Andrew Rybchenko
arybchenko at solarflare.com
Wed Oct 14 15:29:01 CEST 2020
From: Ivan Ilchenko <Ivan.Ilchenko at oktetlabs.ru>
rte_eth_dev_stop() return value was changed from void to int,
so this patch modify usage of this function across kni
according to new return type.
Signed-off-by: Ivan Ilchenko <Ivan.Ilchenko at oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
app/test/test_kni.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/test/test_kni.c b/app/test/test_kni.c
index e47ab36e02..931e8cb67e 100644
--- a/app/test/test_kni.c
+++ b/app/test/test_kni.c
@@ -755,7 +755,8 @@ test_kni(void)
ret = 0;
fail:
- rte_eth_dev_stop(port_id);
+ if (rte_eth_dev_stop(port_id) != 0)
+ printf("Failed to stop port %u\n", port_id);
return ret;
}
--
2.17.1
More information about the dev
mailing list