net/virtio-user: fix crash as features change
authorJianfeng Tan <jianfeng.tan@intel.com>
Tue, 23 Jan 2018 09:52:43 +0000 (09:52 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
commit0d6a8752ac9d1088fed721f81aaa9abbdab53be1
treeff87ba634a992386c9ca206c70e88b71f190c926
parent5a8bb6e9020fa336d00171f72077f814088be0f0
net/virtio-user: fix crash as features change

Since commit 59fe5e17d930 ("vhost: propagate set features handling error"),
vhost does not allow to set different features without reset.

The virtio-user driver fails to reset the device in below commit.

To fix, we send the reset message as stopping the device.

Fixes: c12a26ee209e ("net/virtio-user: fix not properly reset device")
Cc: stable@dpdk.org
Reported-by: Lei Yao <lei.a.yao@intel.com>
Reported-by: Tiwei Bie <tiwei.bie@intel.com>
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
drivers/net/virtio/virtio_user/virtio_user_dev.c