X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fbonding%2Frte_eth_bond_8023ad.h;h=0b5d0a4351b4569a9b888117ac745af905b53a6e;hb=f35e5b3e07b2e7999f7d3085236cc366c9cb4da6;hp=62265f449fc3a82f003123f9adb1f9b3cea62a5d;hpb=6c9d13410be2b6d3b411ade55d1eafbcb7bef313;p=dpdk.git diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.h b/drivers/net/bonding/rte_eth_bond_8023ad.h index 62265f449f..0b5d0a4351 100644 --- a/drivers/net/bonding/rte_eth_bond_8023ad.h +++ b/drivers/net/bonding/rte_eth_bond_8023ad.h @@ -60,7 +60,7 @@ struct slow_protocol { struct slow_protocol_frame { struct rte_ether_hdr eth_hdr; struct slow_protocol slow_protocol; -} __attribute__((__packed__)) __attribute__((aligned(2))); +} __attribute__((__packed__)) __rte_aligned(2); struct port_params { uint16_t system_priority; @@ -73,7 +73,7 @@ struct port_params { /**< Priority of this (unused in current implementation) */ uint16_t port_number; /**< Port number. It corresponds to slave port id. */ -} __attribute__((__packed__)) __attribute__((aligned(2))); +} __attribute__((__packed__)) __rte_aligned(2); struct lacpdu_actor_partner_params { uint8_t tlv_type_info; @@ -81,7 +81,7 @@ struct lacpdu_actor_partner_params { struct port_params port_params; uint8_t state; uint8_t reserved_3[3]; -} __attribute__((__packed__)) __attribute__((aligned(2))); +} __attribute__((__packed__)) __rte_aligned(2); /** LACPDU structure (5.4.2 in 802.1AX documentation). */ struct lacpdu { @@ -99,13 +99,13 @@ struct lacpdu { uint8_t tlv_type_terminator; uint8_t terminator_length; uint8_t reserved_50[50]; -} __attribute__((__packed__)) __attribute__((aligned(2))); +} __attribute__((__packed__)) __rte_aligned(2); /** LACPDU frame: Contains ethernet header and LACPDU. */ struct lacpdu_header { struct rte_ether_hdr eth_hdr; struct lacpdu lacpdu; -} __attribute__((__packed__)) __attribute__((aligned(2))); +} __attribute__((__packed__)) __rte_aligned(2); struct marker { uint8_t subtype; @@ -121,12 +121,12 @@ struct marker { uint8_t tlv_type_terminator; uint8_t terminator_length; uint8_t reserved_90[90]; -} __attribute__((__packed__)) __attribute__((aligned(2))); +} __attribute__((__packed__)) __rte_aligned(2); struct marker_header { struct rte_ether_hdr eth_hdr; struct marker marker; -} __attribute__((__packed__)) __attribute__((aligned(2))); +} __attribute__((__packed__)) __rte_aligned(2); struct rte_eth_bond_8023ad_conf { uint32_t fast_periodic_ms;