aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/l2/l2_input_node.c
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2023-07-12 13:24:45 +0200
committerVratko Polak <vrpolak@cisco.com>2023-08-22 11:52:22 +0000
commit6d4b3fd19c45de81026c6a3a468bd9a5b59ebb5f (patch)
treee63f0469cea81e082ec8bb22f252db75870d25d1 /src/vnet/l2/l2_input_node.c
parente3ce81e56a425eecfc254314f4db1d1774eeba0f (diff)
l2: fix prefetch
This is a clone of Gerrit 35419. (It is abandoned and I am not the owner so I cannot reopen.) Ticket: CSIT-1816 Type: fix Fixes: 5e0ea09d96010e99a7ce0d2f3370f0de50c46c83 Change-Id: I2265cf38a9ce3155460a1025821c2749afca0add Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_input_node.c')
-rw-r--r--src/vnet/l2/l2_input_node.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vnet/l2/l2_input_node.c b/src/vnet/l2/l2_input_node.c
index f8dfa3641b3..07e8c7473ae 100644
--- a/src/vnet/l2/l2_input_node.c
+++ b/src/vnet/l2/l2_input_node.c
@@ -251,11 +251,11 @@ l2input_node_inline (vlib_main_t * vm,
/* Prefetch next iteration. */
{
- /* Prefetch the buffer header and packet for the N+2 loop iteration */
- clib_prefetch_store (b + 4);
- clib_prefetch_store (b + 5);
- clib_prefetch_store (b + 6);
- clib_prefetch_store (b + 7);
+ /* Prefetch the buffer header for the N+2 loop iteration */
+ clib_prefetch_store (b[4]);
+ clib_prefetch_store (b[5]);
+ clib_prefetch_store (b[6]);
+ clib_prefetch_store (b[7]);
clib_prefetch_store (b[4]->data);
clib_prefetch_store (b[5]->data);