Patchwork [dpdk-dev,4/5] vhost: remove useless prefetch for packed ring descriptor

login
register
mail settings
Submitter Maxime Coquelin
Date Dec. 5, 2018, 9:49 a.m.
Message ID <20181205094957.1938-5-maxime.coquelin@redhat.com>
Download mbox | patch
Permalink /patch/672777/
State New
Headers show

Comments

Maxime Coquelin - Dec. 5, 2018, 9:49 a.m.
This prefetch does not show any performance improvement.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
---
 lib/librte_vhost/virtio_net.c | 2 --
 1 file changed, 2 deletions(-)

Patch

diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c
index 0a860ca72..679ce388b 100644
--- a/lib/librte_vhost/virtio_net.c
+++ b/lib/librte_vhost/virtio_net.c
@@ -1476,8 +1476,6 @@  virtio_dev_tx_packed(struct virtio_net *dev, struct vhost_virtqueue *vq,
 {
 	uint16_t i;
 
-	rte_prefetch0(&vq->desc_packed[vq->last_avail_idx]);
-
 	if (unlikely(dev->dequeue_zero_copy)) {
 		struct zcopy_mbuf *zmbuf, *next;