replace packed attributes
[dpdk.git] / drivers / net / enic / base / vnic_devcmd.h
index 09477ab..a2f577f 100644 (file)
@@ -772,7 +772,7 @@ struct filter_usnic_id {
        uint16_t ethtype;
        uint8_t proto_version;
        uint32_t usnic_id;
-} __attribute__((packed));
+} __rte_packed;
 
 #define FILTER_FIELD_5TUP_PROTO  FILTER_FIELD_VALID(1)
 #define FILTER_FIELD_5TUP_SRC_AD FILTER_FIELD_VALID(2)
@@ -801,7 +801,7 @@ struct filter_ipv4_5tuple {
        uint32_t dst_addr;
        uint16_t src_port;
        uint16_t dst_port;
-} __attribute__((packed));
+} __rte_packed;
 
 #define FILTER_FIELD_VMQ_VLAN   FILTER_FIELD_VALID(1)
 #define FILTER_FIELD_VMQ_MAC    FILTER_FIELD_VALID(2)
@@ -815,7 +815,7 @@ struct filter_mac_vlan {
        uint32_t flags;
        uint16_t vlan;
        uint8_t mac_addr[6];
-} __attribute__((packed));
+} __rte_packed;
 
 #define FILTER_FIELD_VLAN_IP_3TUP_VLAN      FILTER_FIELD_VALID(1)
 #define FILTER_FIELD_VLAN_IP_3TUP_L3_PROTO  FILTER_FIELD_VALID(2)
@@ -839,7 +839,7 @@ struct filter_vlan_ip_3tuple {
        } u;
        uint32_t l4_protocol;
        uint16_t dst_port;
-} __attribute__((packed));
+} __rte_packed;
 
 #define FILTER_GENERIC_1_BYTES 64
 
@@ -877,8 +877,8 @@ struct filter_generic_1 {
                                                         * " don't care"
                                                         */
                uint8_t val[FILTER_GENERIC_1_KEY_LEN];
-       } __attribute__((packed)) layer[FILTER_GENERIC_1_NUM_LAYERS];
-} __attribute__((packed));
+       } __rte_packed layer[FILTER_GENERIC_1_NUM_LAYERS];
+} __rte_packed;
 
 /* Specifies the filter_action type. */
 enum {
@@ -892,7 +892,7 @@ struct filter_action {
        union {
                uint32_t rq_idx;
        } u;
-} __attribute__((packed));
+} __rte_packed;
 
 #define FILTER_ACTION_RQ_STEERING_FLAG (1 << 0)
 #define FILTER_ACTION_FILTER_ID_FLAG   (1 << 1)
@@ -911,7 +911,7 @@ struct filter_action_v2 {
        uint32_t flags;               /* use FILTER_ACTION_XXX_FLAG defines */
        uint16_t filter_id;
        uint8_t reserved[32];         /* for future expansion */
-} __attribute__((packed));
+} __rte_packed;
 
 /* Specifies the filter type. */
 enum filter_type {
@@ -949,7 +949,7 @@ struct filter {
                struct filter_mac_vlan mac_vlan;
                struct filter_vlan_ip_3tuple vlan_3tuple;
        } u;
-} __attribute__((packed));
+} __rte_packed;
 
 /*
  * This is a strict superset of "struct filter" and exists only
@@ -969,7 +969,7 @@ struct filter_v2 {
                struct filter_vlan_ip_3tuple vlan_3tuple;
                struct filter_generic_1 generic_1;
        } u;
-} __attribute__((packed));
+} __rte_packed;
 
 enum {
        CLSF_TLV_FILTER = 0,