net/kni: warn on stop failure
authorMin Hu (Connor) <humin29@huawei.com>
Tue, 27 Apr 2021 02:08:45 +0000 (10:08 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 29 Apr 2021 13:34:39 +0000 (15:34 +0200)
commitb752fb4d626c4a0f4a90f04df3684cb5318c376f
treead109883598afeb1ef8cb36e25053c7765268bb3
parent8f3ca7f9a8b1df13f06236b8ab2dbed238b65ba4
net/kni: warn on stop failure

Return value of function 'eth_kni_dev_stop' passed to 'ret' is
rewritten later, and this is unreasonable.

This patch fixes it.

Fixes: 62024eb82756 ("ethdev: change stop operation callback to return int")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/kni/rte_eth_kni.c