From 321bd106a64bdd6c051579f58e111f71c2c7e7d6 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 1 Jun 2022 00:45:18 +0200 Subject: 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 --- src/vlib/init.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vlib/init.h') diff --git a/src/vlib/init.h b/src/vlib/init.h index e6235652ad1..364989eafe0 100644 --- a/src/vlib/init.h +++ b/src/vlib/init.h @@ -171,6 +171,8 @@ static __clib_unused void * __clib_unused_##tag##_##x = x #define VLIB_INIT_FUNCTION(x) VLIB_DECLARE_INIT_FUNCTION(x,init) #define VLIB_WORKER_INIT_FUNCTION(x) VLIB_DECLARE_INIT_FUNCTION(x,worker_init) +#define VLIB_NUM_WORKERS_CHANGE_FN(x) \ + VLIB_DECLARE_INIT_FUNCTION (x, num_workers_change) #define VLIB_MAIN_LOOP_ENTER_FUNCTION(x) \ VLIB_DECLARE_INIT_FUNCTION(x,main_loop_enter) -- cgit 1.2.3-korg