Message ID | 20200403165119.5030-2-eperezma@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | tools/vhost: Reset virtqueue on tests | expand |
diff --git a/tools/virtio/virtio_test.c b/tools/virtio/virtio_test.c index 93d81cd64ba0..38aa5316b266 100644 --- a/tools/virtio/virtio_test.c +++ b/tools/virtio/virtio_test.c @@ -222,7 +222,7 @@ static void run_test(struct vdev_info *dev, struct vq_info *vq, &backend); assert(!r); - while (completed > next_reset) + while (completed > next_reset) next_reset += completed; } } while (r == 0);