Move location of __rte_aligned(a) to new conventional location. The new
placement between {struct,union} and the tag allows the desired
alignment to be imparted on the type regardless of the toolchain being
used for both C and C++. Additionally, it avoids confusion by Doxygen
when generating documentation.Signed-off-by: Tyler Retzlaff <[email protected]> Acked-by: Morten Brørup <[email protected]> --- drivers/net/memif/memif.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/memif/memif.h b/drivers/net/memif/memif.h index cb72c69..f5a4693 100644 --- a/drivers/net/memif/memif.h +++ b/drivers/net/memif/memif.h @@ -162,7 +162,7 @@ typedef struct __rte_packed __rte_aligned(128) } memif_desc_t; #define MEMIF_CACHELINE_ALIGN_MARK(mark) \ - RTE_MARKER mark __rte_cache_aligned; + alignas(RTE_CACHE_LINE_SIZE) RTE_MARKER mark; typedef struct { MEMIF_CACHELINE_ALIGN_MARK(cacheline0); -- 1.8.3.1

