From: Nitin Saxena Date: Wed, 24 Jul 2019 11:49:06 +0000 (+0530) Subject: dpdk: Prefetch correct size of rte_mbuf X-Git-Tag: v20.01-rc0~113 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=1e5ca9b918dfe988eb0247ec35fc188bfabb4dcb;hp=7f37a94bab6d4fac88454105e3a281d57487dbf6;p=vpp.git dpdk: Prefetch correct size of rte_mbuf sizeof(rte_mbuf) is 128 byte but 2* CLIB_CACHE_LINE_BYTES is 256 byte for ThunderX/OCTEONTx targets. Type: fix Change-Id: If6893b168cf1c55c44bf4669a888ce858f2ef487 Signed-off-by: Nitin Saxena --- diff --git a/src/plugins/dpdk/device/device.c b/src/plugins/dpdk/device/device.c index 270abe19190..8778d71cd7a 100644 --- a/src/plugins/dpdk/device/device.c +++ b/src/plugins/dpdk/device/device.c @@ -214,7 +214,7 @@ static_always_inline void dpdk_prefetch_buffer (vlib_main_t * vm, struct rte_mbuf *mb) { vlib_buffer_t *b = vlib_buffer_from_rte_mbuf (mb); - CLIB_PREFETCH (mb, 2 * CLIB_CACHE_LINE_BYTES, STORE); + CLIB_PREFETCH (mb, sizeof (struct rte_mbuf), STORE); CLIB_PREFETCH (b, CLIB_CACHE_LINE_BYTES, LOAD); }