summaryrefslogtreecommitdiffstats
path: root/src/vnet/l2
diff options
context:
space:
mode:
authorRay Kinsella <mdr@ashroe.eu>2021-11-22 12:50:34 +0000
committerRay Kinsella <mdr@ashroe.eu>2021-11-25 09:08:50 +0000
commit5e0ea09d96010e99a7ce0d2f3370f0de50c46c83 (patch)
treef98f9e0ac52ce1700df0795637d21c71c4aac19c /src/vnet/l2
parenta0de7807405963d15216f3d89ee1c6edf678946a (diff)
l2: change prefetch to prefetchw
L2 prefetches the vlib_buffer_t and then immediately writes to l2 split horizon group. Changing to the prefetch to a prefetchw. Type: improvement Signed-off-by: Ray Kinsella <mdr@ashroe.eu> Change-Id: If3b7996978ee80f99c55904692c7b3c905f537ce
Diffstat (limited to 'src/vnet/l2')
-rw-r--r--src/vnet/l2/l2_input_node.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/l2/l2_input_node.c b/src/vnet/l2/l2_input_node.c
index 74625b2ec99..f8dfa3641b3 100644
--- a/src/vnet/l2/l2_input_node.c
+++ b/src/vnet/l2/l2_input_node.c
@@ -252,10 +252,10 @@ l2input_node_inline (vlib_main_t * vm,
/* Prefetch next iteration. */
{
/* Prefetch the buffer header and packet for the N+2 loop iteration */
- vlib_prefetch_buffer_header (b[4], LOAD);
- vlib_prefetch_buffer_header (b[5], LOAD);
- vlib_prefetch_buffer_header (b[6], LOAD);
- vlib_prefetch_buffer_header (b[7], LOAD);
+ 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);