aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vnet/vnet/l2/l2_rw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/l2/l2_rw.c b/vnet/vnet/l2/l2_rw.c
index b66a7d345c8..ffb10f39d11 100644
--- a/vnet/vnet/l2/l2_rw.c
+++ b/vnet/vnet/l2/l2_rw.c
@@ -166,8 +166,8 @@ l2_rw_node_fn(vlib_main_t * vm,
vlib_prefetch_buffer_header (p2, LOAD);
vlib_prefetch_buffer_header (p3, LOAD);
- CLIB_PREFETCH (p2->data, prefetch_size, LOAD);
- CLIB_PREFETCH (p3->data, prefetch_size, LOAD);
+ CLIB_PREFETCH (vlib_buffer_get_current(p2), prefetch_size, LOAD);
+ CLIB_PREFETCH (vlib_buffer_get_current(p3), prefetch_size, LOAD);
}
bi0 = from[0];