net/axgbe: fix incorrect cache alignment macro
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Tue, 17 Apr 2018 20:04:58 +0000 (01:34 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 14:54:56 +0000 (15:54 +0100)
Due to missing ____cacheline_aligned definition compiler treats it as a
global variable replace it with proper cache alignment macro.

Fixes: 9e890103267e ("net/axgbe: add Rx/Tx setup")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/axgbe/axgbe_rxtx.h

index 1ec6c2c..917da58 100644 (file)
@@ -94,7 +94,7 @@ struct axgbe_rx_queue {
        /* Number of mbufs allocated from pool*/
        uint64_t mbuf_alloc;
 
        /* Number of mbufs allocated from pool*/
        uint64_t mbuf_alloc;
 
-} ____cacheline_aligned;
+} __rte_cache_aligned;
 
 /*Tx descriptor format */
 struct axgbe_tx_desc {
 
 /*Tx descriptor format */
 struct axgbe_tx_desc {