[dpdk-stable] [dpdk-dev] [PATCH v3] net/virtio-user: fix return value of tap offload sets not checked
Tiwei Bie
tiwei.bie at intel.com
Tue Jan 14 03:14:35 CET 2020
On Mon, Jan 13, 2020 at 03:40:31PM +0800, Yunjian Wang wrote:
> 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 at dpdk.org
>
> Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
> ---
> v3:
> * Fix return value check incorrectly in v2
> v2:
> * No need to fail when error is -ENOTSUP.
> ---
> drivers/net/virtio/virtio_user/vhost_kernel_tap.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Reviewed-by: Tiwei Bie <tiwei.bie at intel.com>
More information about the stable
mailing list