[PATCH] clarify purpose of empty cache lines

Bruce Richardson bruce.richardson at intel.com
Mon Sep 4 11:12:07 CEST 2023


On Mon, Sep 04, 2023 at 10:43:49AM +0200, Morten Brørup wrote:
> This patch introduces the generic RTE_CACHE_GUARD macro into the EAL, and
> replaces vaguely described empty cache lines in the rte_ring structure
> with this macro.
> 
> Although the implementation of the rte_ring structure assumes that the
> hardware speculatively prefetches 1 cache line, this number can be changed
> at build time by modifying RTE_CACHE_GUARD_LINES in rte_config.h.
> 
> The background and the RFC was discussed in this thread:
> http://inbox.dpdk.org/dev/98CBD80474FA8B44BF855DF32C47DC35D87B39@smartserver.smartshare.dk/
> 
> Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
> ---
Seems fine to me.

Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the dev mailing list