l2: fix prefetch
This is a clone of Gerrit 35419.
(It is abandoned and I am not the owner so I cannot reopen.)
Ticket: CSIT-1816
Type: fix
Fixes: 5e0ea09d96
Change-Id: I2265cf38a9ce3155460a1025821c2749afca0add
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
This commit is contained in:
@ -251,11 +251,11 @@ l2input_node_inline (vlib_main_t * vm,
|
||||
|
||||
/* Prefetch next iteration. */
|
||||
{
|
||||
/* Prefetch the buffer header and packet for the N+2 loop iteration */
|
||||
clib_prefetch_store (b + 4);
|
||||
clib_prefetch_store (b + 5);
|
||||
clib_prefetch_store (b + 6);
|
||||
clib_prefetch_store (b + 7);
|
||||
/* Prefetch the buffer header for the N+2 loop iteration */
|
||||
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);
|
||||
|
Reference in New Issue
Block a user