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 <roret...@linux.microsoft.com> --- drivers/net/hinic/hinic_pmd_rx.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/hinic/hinic_pmd_rx.h b/drivers/net/hinic/hinic_pmd_rx.h index 5c30339..2dde3ec 100644 --- a/drivers/net/hinic/hinic_pmd_rx.h +++ b/drivers/net/hinic/hinic_pmd_rx.h @@ -28,18 +28,18 @@ struct hinic_rq_ctrl { u32 ctrl_fmt; }; +#if defined(RTE_ARCH_ARM64) +struct __rte_cache_aligned hinic_rq_cqe { +#else struct hinic_rq_cqe { +#endif u32 status; u32 vlan_len; u32 offload_type; u32 rss_hash; u32 rsvd[4]; -#if defined(RTE_ARCH_ARM64) -} __rte_cache_aligned; -#else }; -#endif struct hinic_rq_cqe_sect { struct hinic_sge sge; -- 1.8.3.1