summaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorDmitry Valter <d-valter@yandex-team.ru>2022-03-29 15:13:26 +0000
committerDamjan Marion <dmarion@me.com>2022-03-29 16:58:58 +0000
commit5760fdfb8c042e008156f435d2530e87582f2e40 (patch)
treec74ad152b7f9123622f6e0787ecebfbea4b4fba8 /src/vlib
parent4db618380280df6f0f88b99566dfab5ad2ee85f4 (diff)
vlib: fix unaligned runtime_data
Align runtime_data to 8 bytes to avoid alignment issues with any pointers in runtime_data located structures. Type: fix Signed-off-by: Dmitry Valter <d-valter@yandex-team.ru> Change-Id: I9cb1b73595e654a4b15c45f87b43fa6cfbcb6e51
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/node.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlib/node.h b/src/vlib/node.h
index ee3aded6068..db8d4246f03 100644
--- a/src/vlib/node.h
+++ b/src/vlib/node.h
@@ -503,6 +503,8 @@ typedef struct vlib_node_runtime_t
zero before first run of this
node. */
+ CLIB_ALIGN_MARK (runtime_data_pad, 8);
+
u8 runtime_data[0]; /**< Function dependent
node-runtime data. This data is
thread local, and it is not