aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-04-24 20:58:29 +0200
committerFlorin Coras <florin.coras@gmail.com>2017-04-25 00:13:53 +0000
commit36c1308b35baac817c2c0b21335b1eed02689f0a (patch)
tree494d3d4c4e0becdfb202f478b10157179059d7ac /src
parent6ce2232e4cd4a24f73bdfd32ae01f14cf8c1ee77 (diff)
Fix structure alignment with 32-bit pointers
Change-Id: I740de6c0f12dab452b4349e3bf89ff976a6268c0 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vlib/node.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vlib/node.h b/src/vlib/node.h
index 1e2f4c381a1..906d795fe23 100644
--- a/src/vlib/node.h
+++ b/src/vlib/node.h
@@ -418,6 +418,10 @@ typedef struct vlib_node_runtime_t
vlib_error_t *errors; /**< Vector of errors for this node. */
+#if __SIZEOF_POINTER__ == 4
+ u8 pad[8];
+#endif
+
u32 clocks_since_last_overflow; /**< Number of clock cycles. */
u32 max_clock; /**< Maximum clock cycle for an