vxlan: prefetch extra one cacheline holding external header 88/15688/2
authorZhiyong Yang <zhiyong.yang@intel.com>
Mon, 5 Nov 2018 08:45:25 +0000 (03:45 -0500)
committerJohn Lo <loj@cisco.com>
Mon, 5 Nov 2018 21:02:38 +0000 (21:02 +0000)
For vxlan_encap, code will touch memory area before the field "data"
in struct vlib_buffer_t, however so far it is not prefetched in cache
yet for this graph node.
After applying the patch, 2~3 cycles per pkt for vxlan4_encap can be
saved on Haswell. It will bring a lot of benefits on DVN platform too.

Change-Id: I26d8c57fb3d2415726be5367117d73eb715e35ad
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>

No differences found