From 690d26c6b9ddbd1a252e0eff61a28a62fc740432 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 11 Jul 2017 17:13:37 +0200 Subject: dpdk: prefetch 2nd cacheline of rte_mbuf during tx Change-Id: I0db02dd0147dbd47d4296fdb84280d0e7d321f3c Signed-off-by: Damjan Marion --- src/plugins/dpdk/device/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/dpdk/device') diff --git a/src/plugins/dpdk/device/device.c b/src/plugins/dpdk/device/device.c index c68ecbda246..8801bfd3a25 100644 --- a/src/plugins/dpdk/device/device.c +++ b/src/plugins/dpdk/device/device.c @@ -307,7 +307,7 @@ dpdk_prefetch_buffer_by_index (vlib_main_t * vm, u32 bi) struct rte_mbuf *mb; b = vlib_get_buffer (vm, bi); mb = rte_mbuf_from_vlib_buffer (b); - CLIB_PREFETCH (mb, CLIB_CACHE_LINE_BYTES, LOAD); + CLIB_PREFETCH (mb, 2 * CLIB_CACHE_LINE_BYTES, STORE); CLIB_PREFETCH (b, CLIB_CACHE_LINE_BYTES, LOAD); } -- cgit 1.2.3-korg