]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost_user.c
vhost: fix virtio ready flag check
[dpdk.git] / lib / librte_vhost / vhost_user.c
index aa8605523ac007888257407039ce195148702fef..bac3e89713da22aa1354678d800282993b2c5c81 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)) {