l2: fix array-bounds error for prefetch on Arm
[vpp.git] / src / vnet / l2 / l2_in_out_feat_arc.c
index b3b4a8c..94c4c1b 100644 (file)
@@ -257,7 +257,8 @@ l2_in_out_feat_arc_node_fn (vlib_main_t * vm,
   sw_if_index = sw_if_indices;
   n_left = frame->n_vectors;
 
-  CLIB_PREFETCH (next_node_indices, 2 * CLIB_CACHE_LINE_BYTES, LOAD);
+  CLIB_PREFETCH (next_node_indices,
+                sizeof (fam->feat_next_node_index[is_output]), LOAD);
 
   while (n_left > 3 * L2_FEAT_ARC_VEC_SIZE)
     {