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/netvsc/hn_var.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/netvsc/hn_var.h b/drivers/net/netvsc/hn_var.h index ba86129..0f638bc 100644 --- a/drivers/net/netvsc/hn_var.h +++ b/drivers/net/netvsc/hn_var.h @@ -94,12 +94,12 @@ struct hn_rx_queue { /* multi-packet data from host */ -struct hn_rx_bufinfo { +struct __rte_cache_aligned hn_rx_bufinfo { struct vmbus_channel *chan; struct hn_rx_queue *rxq; uint64_t xactid; struct rte_mbuf_ext_shared_info shinfo; -} __rte_cache_aligned; +}; #define HN_INVALID_PORT UINT16_MAX -- 1.8.3.1