vhost: fix missing flag reset on stop
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 27 Jun 2016 05:22:00 +0000 (13:22 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Thu, 30 Jun 2016 05:46:29 +0000 (07:46 +0200)
commit4feff06e5055922e2c7df858a29f723bddf8ceaf
tree09a15c9f980f90728f801a4d4056caf860f7eeb3
parent2bfaec9072250104e1b152edd05385895fe43f0e
vhost: fix missing flag reset on stop

Commit 550c9d27d143 ("vhost: set/reset device flags internally") moves
the VIRTIO_DEV_RUNNING set/reset to vhost lib. But I missed one reset
on stop; here fixes it.

Fixes: 550c9d27d143 ("vhost: set/reset device flags internally")

Reported-by: Ciara Loftus <ciara.loftus@intel.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Tested-by: Ciara Loftus <ciara.loftus@intel.com>
lib/librte_vhost/vhost_user/virtio-net-user.c