From 5760fdfb8c042e008156f435d2530e87582f2e40 Mon Sep 17 00:00:00 2001 From: Dmitry Valter Date: Tue, 29 Mar 2022 15:13:26 +0000 Subject: 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 Change-Id: I9cb1b73595e654a4b15c45f87b43fa6cfbcb6e51 --- src/vlib/node.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vlib') 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 -- cgit 1.2.3-korg