summaryrefslogtreecommitdiff
path: root/sys-cluster/ceph/files/ceph-13.2.6-dpdk-alignment.patch
blob: c5d048eb7a2ee1ac24a230f245efdd7763d9f395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/spdk/dpdk/lib/librte_net/rte_ether.h b/src/spdk/dpdk/lib/librte_net/rte_ether.h
index 3a87ff184..8090b7c01 100644
--- a/src/spdk/dpdk/lib/librte_net/rte_ether.h
+++ b/src/spdk/dpdk/lib/librte_net/rte_ether.h
@@ -55,7 +55,8 @@ extern "C" {
  * See http://standards.ieee.org/regauth/groupmac/tutorial.html
  */
 struct ether_addr {
-	uint8_t addr_bytes[ETHER_ADDR_LEN]; /**< Addr bytes in tx order */
+	/** Addr bytes in tx order */
+	uint8_t addr_bytes[ETHER_ADDR_LEN] __rte_aligned(2);
 } __attribute__((__packed__));

 #define ETHER_LOCAL_ADMIN_ADDR 0x02 /**< Locally assigned Eth. address. */