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/e1000/igb_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c index 5cafd6f..d61eaad 100644 --- a/drivers/net/e1000/igb_rxtx.c +++ b/drivers/net/e1000/igb_rxtx.c @@ -705,8 +705,8 @@ struct igb_tx_queue { static inline uint32_t igb_rxd_pkt_info_to_pkt_type(uint16_t pkt_info) { - static const uint32_t - ptype_table[IGB_PACKET_TYPE_MAX] __rte_cache_aligned = { + static const alignas(RTE_CACHE_LINE_SIZE) uint32_t + ptype_table[IGB_PACKET_TYPE_MAX] = { [IGB_PACKET_TYPE_IPV4] = RTE_PTYPE_L2_ETHER | RTE_PTYPE_L3_IPV4, [IGB_PACKET_TYPE_IPV4_EXT] = RTE_PTYPE_L2_ETHER | -- 1.8.3.1

