From: Ivan Ilchenko <ivan.ilche...@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.ilche...@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybche...@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

Reply via email to