diff --git a/lib/vhost/rte_vhost_user.c b/lib/vhost/rte_vhost_user.c index 21c9ec549..eae22895c 100644 --- a/lib/vhost/rte_vhost_user.c +++ b/lib/vhost/rte_vhost_user.c @@ -1051,7 +1051,11 @@ start_device(int vid) * so q->vring.desc can replace q->vring.desc_packed. */ if (q->vring.desc != NULL && q->vring.size > 0) { - rte_vhost_vring_call(vsession->vid, q->vring_idx); + /* Make sure a successful call of + * `rte_vhost_vring_call` will happen + * after starting the device. + */ + q->used_req_cnt += 1; } }