From fd8deb48c7ad63b47c5d7465ceefcadef0316f93 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Sat, 6 Mar 2021 12:26:28 +0100 Subject: vlib: split vlib_main_t into global and per-thread Type: refactor Change-Id: I8b273bc3bf16aa360f031f1b2692f766e5fc4613 Signed-off-by: Damjan Marion --- src/vlibmemory/vlib_api.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/vlibmemory') diff --git a/src/vlibmemory/vlib_api.c b/src/vlibmemory/vlib_api.c index f0330700f67..f9ed891f90a 100644 --- a/src/vlibmemory/vlib_api.c +++ b/src/vlibmemory/vlib_api.c @@ -259,6 +259,7 @@ static uword vl_api_clnt_process (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * f) { + vlib_global_main_t *vgm = vlib_get_global_main (); int private_segment_rotor = 0, i, rv; vl_socket_args_for_process_t *a; vl_shmem_hdr_t *shm; @@ -289,8 +290,8 @@ vl_api_clnt_process (vlib_main_t * vm, vlib_node_runtime_t * node, shm = am->shmem_hdr; q = shm->vl_input_queue; - e = vlib_call_init_exit_functions - (vm, &vm->api_init_function_registrations, 1 /* call_once */ ); + e = vlib_call_init_exit_functions (vm, &vgm->api_init_function_registrations, + 1 /* call_once */, 1 /* is_global */); if (e) clib_error_report (e); -- cgit 1.2.3-korg