Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
session: fix prefetch out of struct bound on Arm
[vpp.git]
/
src
/
vnet
/
session
/
session_node.c
diff --git
a/src/vnet/session/session_node.c
b/src/vnet/session/session_node.c
index
969f88c
..
18fb61d
100644
(file)
--- a/
src/vnet/session/session_node.c
+++ b/
src/vnet/session/session_node.c
@@
-1580,7
+1580,7
@@
session_event_dispatch_io (session_worker_t * wrk, vlib_node_runtime_t * node,
s = session_event_get_session (wrk, e);
if (PREDICT_FALSE (!s))
break;
s = session_event_get_session (wrk, e);
if (PREDICT_FALSE (!s))
break;
- CLIB_PREFETCH (s->tx_fifo,
2 * CLIB_CACHE_LINE_BYTES
, LOAD);
+ CLIB_PREFETCH (s->tx_fifo,
sizeof (*(s->tx_fifo))
, LOAD);
wrk->ctx.s = s;
/* Spray packets in per session type frames, since they go to
* different nodes */
wrk->ctx.s = s;
/* Spray packets in per session type frames, since they go to
* different nodes */