aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip4_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/ip/ip4_input.c')
-rw-r--r--src/vnet/ip/ip4_input.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/vnet/ip/ip4_input.c b/src/vnet/ip/ip4_input.c
index 5a2ae17391f..1928a66d76c 100644
--- a/src/vnet/ip/ip4_input.c
+++ b/src/vnet/ip/ip4_input.c
@@ -163,10 +163,14 @@ ip4_input_inline (vlib_main_t * vm,
vlib_prefetch_buffer_header (b[10], LOAD);
vlib_prefetch_buffer_header (b[11], LOAD);
- CLIB_PREFETCH (b[4]->data, sizeof (ip4_header_t), LOAD);
- CLIB_PREFETCH (b[5]->data, sizeof (ip4_header_t), LOAD);
- CLIB_PREFETCH (b[6]->data, sizeof (ip4_header_t), LOAD);
- CLIB_PREFETCH (b[7]->data, sizeof (ip4_header_t), LOAD);
+ CLIB_PREFETCH (vlib_buffer_get_current (b[4]),
+ sizeof (ip4_header_t), LOAD);
+ CLIB_PREFETCH (vlib_buffer_get_current (b[5]),
+ sizeof (ip4_header_t), LOAD);
+ CLIB_PREFETCH (vlib_buffer_get_current (b[6]),
+ sizeof (ip4_header_t), LOAD);
+ CLIB_PREFETCH (vlib_buffer_get_current (b[7]),
+ sizeof (ip4_header_t), LOAD);
}
vnet_buffer (b[0])->ip.adj_index[VLIB_RX] = ~0;