diff options
author | Damjan Marion <damarion@cisco.com> | 2017-11-23 17:27:05 +0100 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-11-23 17:36:25 +0000 |
commit | 63118b1afd58501377684b800dc86326a3c6038e (patch) | |
tree | dc79c282150598b138235f9bd2c6203a59310e07 /src/plugins/dpdk | |
parent | e9890ba546876aca343ae676b3c8f3c8d210829d (diff) |
dpdk: prefetch both cachelines during buffer free
Change-Id: I4ae65494b8f9bc51521add5e66a51b594aad6716
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dpdk')
-rw-r--r-- | src/plugins/dpdk/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/dpdk/buffer.c b/src/plugins/dpdk/buffer.c index 293fb6cba27..baa190df4c4 100644 --- a/src/plugins/dpdk/buffer.c +++ b/src/plugins/dpdk/buffer.c @@ -363,7 +363,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, STORE); + CLIB_PREFETCH (mb, 2 * CLIB_CACHE_LINE_BYTES, STORE); CLIB_PREFETCH (b, CLIB_CACHE_LINE_BYTES, LOAD); } |