vlib: fix unaligned runtime_data 00/35800/4
authorDmitry Valter <d-valter@yandex-team.ru>
Tue, 29 Mar 2022 15:13:26 +0000 (15:13 +0000)
committerDamjan Marion <dmarion@me.com>
Tue, 29 Mar 2022 16:58:58 +0000 (16:58 +0000)
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

src/vlib/node.h

index ee3aded..db8d424 100644 (file)
@@ -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