eal: add new prefetch write variants
authorHarry van Haaren <harry.van.haaren@intel.com>
Thu, 15 Oct 2020 10:32:37 +0000 (11:32 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 15 Oct 2020 19:49:59 +0000 (21:49 +0200)
commit31f83163cf2f9ac4d8c1884bb7d1fc8e15b1f540
treedad21f0e494ead4a41cedaaf2cfd6fd7cc8fb261
parent057d9a92f0a9aa07dd820669d4a07b325661929f
eal: add new prefetch write variants

This commit adds new rte_prefetchX_write() variants, that suggest to the
compiler to use a prefetch instruction with intention to write. As a
compiler builtin, the compiler can choose based on compilation target
what the best implementation for this instruction is.

Three versions are provided, targeting the different levels of cache.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
app/test/test_prefetch.c
doc/guides/rel_notes/release_20_11.rst
lib/librte_eal/include/generic/rte_prefetch.h