From: Michal Krawczyk Date: Tue, 11 May 2021 06:45:44 +0000 (+0200) Subject: net/ena/base: prefetch cache with intention to write X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=eb357d5f86ab23cdebe8f203a4d914087b8da1a5;p=dpdk.git net/ena/base: prefetch cache with intention to write As in the v20.11 rte_prefetch0_write API was added, it should be used in the platform file for the definition of the macro prefetchw, instead of using simply prefetch0. Signed-off-by: Michal Krawczyk Reviewed-by: Igor Chauskin Reviewed-by: Amit Bernstein --- diff --git a/drivers/net/ena/base/ena_plat_dpdk.h b/drivers/net/ena/base/ena_plat_dpdk.h index ddf54f0ad5..9d1426da0b 100644 --- a/drivers/net/ena/base/ena_plat_dpdk.h +++ b/drivers/net/ena/base/ena_plat_dpdk.h @@ -291,7 +291,7 @@ extern rte_atomic32_t ena_alloc_cnt; #define might_sleep() #define prefetch(x) rte_prefetch0(x) -#define prefetchw(x) prefetch(x) +#define prefetchw(x) rte_prefetch0_write(x) #define lower_32_bits(x) ((uint32_t)(x)) #define upper_32_bits(x) ((uint32_t)(((x) >> 16) >> 16))