diff --git a/lib/vhost/vhost.c b/lib/vhost/vhost.c index 29c64d1ce..9a14421a2 100644 --- a/lib/vhost/vhost.c +++ b/lib/vhost/vhost.c @@ -374,11 +374,6 @@ spdk_vhost_vq_used_ring_enqueue(struct spdk_vhost_dev *vdev, struct spdk_vhost_v spdk_wmb(); virtqueue->used_req_cnt++; - - if (spdk_vhost_dev_has_feature(vdev, VIRTIO_F_NOTIFY_ON_EMPTY) && - spdk_unlikely(vring->avail->idx == vring->last_avail_idx)) { - spdk_vhost_vq_used_signal(vdev, virtqueue); - } } int diff --git a/lib/vhost/vhost_internal.h b/lib/vhost/vhost_internal.h index f5640d9bf..da346cb63 100644 --- a/lib/vhost/vhost_internal.h +++ b/lib/vhost/vhost_internal.h @@ -91,7 +91,8 @@ (1ULL << VIRTIO_RING_F_INDIRECT_DESC)) #define SPDK_VHOST_DISABLED_FEATURES ((1ULL << VIRTIO_RING_F_EVENT_IDX) | \ - (1ULL << VIRTIO_RING_F_INDIRECT_DESC)) + (1ULL << VIRTIO_RING_F_INDIRECT_DESC) | \ + (1ULL << VIRTIO_F_NOTIFY_ON_EMPTY)) struct spdk_vhost_virtqueue { struct rte_vhost_vring vring;