misc: replace CLIB_PREFETCH with clib_prefetch_{load,store}

Type: refactor
Change-Id: Id10cbf52e8f2dd809080a228d8fa282308be84ac
Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2021-07-15 11:54:41 +02:00
committed by Andrew Yourtchenko
parent 0aea808ac5
commit af7fb04b81
70 changed files with 280 additions and 286 deletions

View File

@@ -94,7 +94,7 @@ nsim_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
{
/* prefetch one line / 2 entries ahead */
if ((((uword) ep) & (CLIB_CACHE_LINE_BYTES - 1)) == 0)
CLIB_PREFETCH ((ep + 2), CLIB_CACHE_LINE_BYTES, LOAD);
clib_prefetch_load ((ep + 2));
ep = wp->entries + wp->head;
from[0] = ep->buffer_index;