dpdk: prefetch becomes prefetchw 65/34565/3
authorRay Kinsella <mdr@ashroe.eu>
Mon, 22 Nov 2021 12:08:04 +0000 (12:08 +0000)
committerRay Kinsella <mdr@ashroe.eu>
Thu, 25 Nov 2021 09:04:27 +0000 (09:04 +0000)
commita0de7807405963d15216f3d89ee1c6edf678946a
tree66112a4af14eab41a9753152d46d5657420c97ee
parent2711ca710affe0c52bf63e08e0cf0588094e6198
dpdk: prefetch becomes prefetchw

Changed dpdk-input prefetch of vlib_buffer_t to prefetchw.

vlib_buffer_t was being prefetched without 'ownership', which may
cause a stall when the buffer is subsequently written to. This saves
4 clocks a packet when the buffer is shared a cross cores, and has no
impact when not sharing.

Type: improvement

Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
Change-Id: I317af2a38ef536022e68552351a8507861f62dad
src/plugins/dpdk/device/node.c