[v2,06/11] kni: check eth dev stop status
Checks
Commit Message
From: Ivan Ilchenko <ivan.ilchenko@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@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
app/test/test_kni.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -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;
}