[dpdk-dev] [PATCH v2] ring: use aligned memzone allocation

Olivier Matz olivier.matz at 6wind.com
Fri Jun 30 13:36:02 CEST 2017


On Fri,  2 Jun 2017 13:12:13 -0700, Daniel Verkamp <daniel.verkamp at intel.com> wrote:
> rte_memzone_reserve() provides cache line alignment, but
> struct rte_ring may require more than cache line alignment: on x86-64,
> it needs 128-byte alignment due to PROD_ALIGN and CONS_ALIGN, which are
> 128 bytes, but cache line size is 64 bytes.
> 
> Fixes runtime warnings with UBSan enabled.
> 
> Fixes: d9f0d3a1ffd4 ("ring: remove split cacheline build setting")
> 
> Signed-off-by: Daniel Verkamp <daniel.verkamp at intel.com>

Acked-by: Olivier Matz <olivier.matz at 6wind.com>


More information about the dev mailing list