summaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/devices/virtio/vhost-user.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/vnet/vnet/devices/virtio/vhost-user.c b/vnet/vnet/devices/virtio/vhost-user.c
index 8ca8c173f27..9b0db749ee9 100644
--- a/vnet/vnet/devices/virtio/vhost-user.c
+++ b/vnet/vnet/devices/virtio/vhost-user.c
@@ -1493,8 +1493,7 @@ vhost_user_intfc_tx (vlib_main_t * vm,
}
buffer_len = desc_table[desc_index].len;
- CLIB_PREFETCH (buffer_addr,
- clib_min (buffer_len, 2 * CLIB_CACHE_LINE_BYTES), STORE);
+ CLIB_PREFETCH (buffer_addr, CLIB_CACHE_LINE_BYTES, STORE);
virtio_net_hdr_mrg_rxbuf_t *hdr =
(virtio_net_hdr_mrg_rxbuf_t *) buffer_addr;
@@ -1605,9 +1604,7 @@ vhost_user_intfc_tx (vlib_main_t * vm,
goto done;
}
buffer_len = desc_table[desc_index].len;
- CLIB_PREFETCH (buffer_addr,
- clib_min (buffer_len,
- 2 * CLIB_CACHE_LINE_BYTES), STORE);
+ CLIB_PREFETCH (buffer_addr, CLIB_CACHE_LINE_BYTES, STORE);
}
else
{