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]> --- drivers/net/mlx4/mlx4_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx4/mlx4_rxtx.c b/drivers/net/mlx4/mlx4_rxtx.c index 059e432..947cae4 100644 --- a/drivers/net/mlx4/mlx4_rxtx.c +++ b/drivers/net/mlx4/mlx4_rxtx.c @@ -62,7 +62,7 @@ struct tso_info { }; /** A table to translate Rx completion flags to packet type. */ -uint32_t mlx4_ptype_table[0x100] __rte_cache_aligned = { +alignas(RTE_CACHE_LINE_SIZE) uint32_t mlx4_ptype_table[0x100] = { /* * The index to the array should have: * bit[7] - MLX4_CQE_L2_TUNNEL -- 1.8.3.1

