vhost: fix virtio ready flag check
[dpdk.git] / lib / librte_vhost / vhost_user.c
index aa86055..bac3e89 100644 (file)
@@ -2842,7 +2842,7 @@ skip_to_post_handle:
        }
 
 
-       if (!(dev->flags & VIRTIO_DEV_RUNNING) && virtio_is_ready(dev)) {
+       if (!(dev->flags & VIRTIO_DEV_READY) && virtio_is_ready(dev)) {
                dev->flags |= VIRTIO_DEV_READY;
 
                if (!(dev->flags & VIRTIO_DEV_RUNNING)) {