Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
misc: replace CLIB_PREFETCH with clib_prefetch_{load,store}
[vpp.git]
/
src
/
plugins
/
nsim
/
nsim_input.c
diff --git
a/src/plugins/nsim/nsim_input.c
b/src/plugins/nsim/nsim_input.c
index
1976d05
..
65a7ae1
100644
(file)
--- a/
src/plugins/nsim/nsim_input.c
+++ b/
src/plugins/nsim/nsim_input.c
@@
-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)
{
/* 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;
ep = wp->entries + wp->head;
from[0] = ep->buffer_index;