aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorPierre Pfister <ppfister@cisco.com>2016-07-15 08:41:04 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-07-21 09:36:25 +0000
commit404ca6e1c483b87b1bba5b4ff4f3b24de8e6c31a (patch)
treebf1ed0650535a2a0408f8772d77472425585df6c /vnet
parentae6725b6fdf556470c3fb35db349c40becc15cce (diff)
l2_rw preload starts where data is
Change-Id: I8819f78dedb02abd38ae0c404e9524ebde12191f Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'vnet')
-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];