summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-03-17 16:31:50 -0700
committerFlorin Coras <florin.coras@gmail.com>2022-03-17 23:22:10 +0000
commitf540d1e11d7a10b56f039be5a95cde9b69140b73 (patch)
tree1f8b1014f125d525fe3d367c4a7d1839f98ea12b /src
parenteeb31ec7238b24d5b152731890b91777a1efc98b (diff)
vlib: fix vlib_mains vector alignment
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ib3d1ac6c82bc0c00e445b15d4102e4fd755f8e2d
Diffstat (limited to 'src')
-rw-r--r--src/vlib/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/main.h b/src/vlib/main.h
index a16f603f467..18ec3be05e1 100644
--- a/src/vlib/main.h
+++ b/src/vlib/main.h
@@ -469,7 +469,7 @@ vlib_main_init ()
vgm->init_functions_called = hash_create (0, /* value bytes */ 0);
vm = clib_mem_alloc_aligned (sizeof (*vm), CLIB_CACHE_LINE_BYTES);
- vec_add1 (vgm->vlib_mains, vm);
+ vec_add1_ha (vgm->vlib_mains, vm, 0, CLIB_CACHE_LINE_BYTES);
}
/* Main routine. */