From 4066f23f63ae40c051ff72ae53122e9463ba3656 Mon Sep 17 00:00:00 2001 From: Sanjyot Vaidya Date: Tue, 19 Aug 2025 05:08:35 +0000 Subject: [PATCH] ring: added cache alignment Added cache alignment for the mpmc ring. Signed-off-by: Sanjyot Vaidya --- platform/linux-generic/include/odp_ring_mpmc_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/include/odp_ring_mpmc_internal.h b/platform/linux-generic/include/odp_ring_mpmc_internal.h index bd8a5c77ddc..2a5eb0b751d 100644 --- a/platform/linux-generic/include/odp_ring_mpmc_internal.h +++ b/platform/linux-generic/include/odp_ring_mpmc_internal.h @@ -66,10 +66,10 @@ extern "C" { struct ring_mpmc_common { odp_atomic_u32_t r_head ODP_ALIGNED_CACHE; - odp_atomic_u32_t r_tail; + odp_atomic_u32_t r_tail ODP_ALIGNED_CACHE; odp_atomic_u32_t w_head ODP_ALIGNED_CACHE; - odp_atomic_u32_t w_tail; + odp_atomic_u32_t w_tail ODP_ALIGNED_CACHE; }; typedef struct ODP_ALIGNED_CACHE {