vlib: fix vlib_mains vector alignment
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ib3d1ac6c82bc0c00e445b15d4102e4fd755f8e2d
diff --git a/src/vlib/main.h b/src/vlib/main.h
index a16f603..18ec3be 100644
--- a/src/vlib/main.h
+++ b/src/vlib/main.h
@@ -469,7 +469,7 @@
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. */