Signed-off-by: Maxime Coquelin <maxime.coque...@redhat.com> --- lib/librte_vhost/virtio_net.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 0980efe53..115bb885d 100644 --- a/lib/librte_vhost/virtio_net.c +++ b/lib/librte_vhost/virtio_net.c @@ -1076,6 +1076,8 @@ rte_vhost_dequeue_burst(int vid, uint16_t queue_id, vq->shadow_used_idx = 0; } + rte_prefetch0(&vq->avail->ring[vq->last_avail_idx & (vq->size - 1)]); + /* * Construct a RARP broadcast packet, and inject it to the "pkts" * array, to looks like that guest actually send such packet. -- 2.14.4