aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/main.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-06-01 00:45:18 +0200
committerBeno�t Ganne <bganne@cisco.com>2022-06-01 11:34:03 +0000
commit321bd106a64bdd6c051579f58e111f71c2c7e7d6 (patch)
tree4e5cb606b19a533d404f8dc60325c620ff6d1951 /src/vlib/main.h
parentdd2f12ba6ab952d9d66f4d9ba89ffde6309b1ff2 (diff)
vlib: add VLIB_NUM_WORKERS_CHANGE_FN() handler
Allows features to update their data structures after change in number of worker threads. Type: improvement Change-Id: Icd4d197e28608f5bbb1edd13eb624cd98e33cafe Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/main.h')
-rw-r--r--src/vlib/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlib/main.h b/src/vlib/main.h
index 1413158ad53..acb9924ac44 100644
--- a/src/vlib/main.h
+++ b/src/vlib/main.h
@@ -306,6 +306,7 @@ typedef struct vlib_global_main_t
_vlib_init_function_list_elt_t *main_loop_enter_function_registrations;
_vlib_init_function_list_elt_t *main_loop_exit_function_registrations;
_vlib_init_function_list_elt_t *worker_init_function_registrations;
+ _vlib_init_function_list_elt_t *num_workers_change_function_registrations;
_vlib_init_function_list_elt_t *api_init_function_registrations;
vlib_config_function_runtime_t *config_function_registrations;