virtio: fix restart
authorJianfeng Tan <jianfeng.tan@intel.com>
Mon, 11 Jan 2016 06:16:13 +0000 (14:16 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 17:52:18 +0000 (18:52 +0100)
commit9a0615af7746485d73d10561cc0743bc2fcd4bf7
tree78ca82d80ae497d0df27053883e866c5c29c53db
parentc7f9ccfb5802b1d07325266c6b1e10991ebba9a1
virtio: fix restart

Fix the issue that virtio device cannot be started after stopped.

The field, hw->started, should be changed by virtio_dev_start/stop instead
of virtio_dev_close.

Fixes: a85786dc816f ("virtio: fix states handling during initialization")

Reported-by: Pavel Fedin <p.fedin@samsung.com>
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Tested-by: Pavel Fedin <p.fedin@samsung.com>
drivers/net/virtio/virtio_ethdev.c