replace packed attributes
[dpdk.git] / drivers / net / nfp / nfp_net_pmd.h
index cc1055c..cb2d19a 100644 (file)
@@ -182,7 +182,7 @@ struct nfp_net_tx_desc {
                                __le16 vlan; /* VLAN tag to add if indicated */
                        };
                        __le16 data_len;    /* Length of frame + meta data */
-               } __attribute__((__packed__));
+               } __rte_packed;
                __le32 vals[4];
        };
 };
@@ -243,7 +243,7 @@ struct nfp_net_txq {
        int qidx;
        int tx_qcidx;
        __le64 dma;
-} __attribute__ ((__aligned__(64)));
+} __rte_aligned(64);
 
 /* RX and freelist descriptor format */
 #define PCIE_DESC_RX_DD                 (1 << 7)
@@ -278,7 +278,7 @@ struct nfp_net_rx_desc {
                        uint8_t dd;
 
                        __le32 dma_addr_lo;
-               } __attribute__((__packed__)) fld;
+               } __rte_packed fld;
 
                /* RX descriptor */
                struct {
@@ -288,7 +288,7 @@ struct nfp_net_rx_desc {
 
                        __le16 flags;
                        __le16 vlan;
-               } __attribute__((__packed__)) rxd;
+               } __rte_packed rxd;
 
                __le32 vals[2];
        };
@@ -374,7 +374,7 @@ struct nfp_net_rxq {
        int qidx;
        int fl_qcidx;
        int rx_qcidx;
-} __attribute__ ((__aligned__(64)));
+} __rte_aligned(64);
 
 struct nfp_net_hw {
        /* Info from the firmware */