net/tap: check ioctl on restore
authorChengchang Tang <tangchengchang@huawei.com>
Tue, 27 Apr 2021 00:54:22 +0000 (08:54 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 29 Apr 2021 13:34:39 +0000 (15:34 +0200)
commit8f3ca7f9a8b1df13f06236b8ab2dbed238b65ba4
treefed9e0052f49aabd9b4f6c0119890921330dad31
parenta767951e597964e6c02529097edd2b43b5aace4d
net/tap: check ioctl on restore

After restoring the remote states, the return value of ioctl() is not
checked. Therefore, users cannot know whether the remote state is
restored successfully.

This patch add log for restoring failure.

Fixes: 4810d3af8343 ("net/tap: restore state of remote device when closing")
Cc: stable@dpdk.org
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/tap/rte_eth_tap.c