net/virtio-user: check tap offload setting failure
authorYunjian Wang <wangyunjian@huawei.com>
Mon, 13 Jan 2020 07:40:31 +0000 (15:40 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:26 +0000 (19:46 +0100)
commit1ad2f882b34a644d4dc91b366f38a73a1b4f4cf5
tree7384207ae1c1aea6c310e88d31b409f65b4073a3
parent7e72f3ec1a8abefd9321a61e484846e16177f5b1
net/virtio-user: check tap offload setting failure

The function vhost_kernel_tap_set_offload() could return errors,
the return value need to be checked. And there is no need to fail
when error is -ENOTSUP.

Fixes: 1db4d2330bc8 ("net/virtio-user: check negotiated features before set")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
drivers/net/virtio/virtio_user/vhost_kernel_tap.c