aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl/vcl_private.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-09-07 14:32:58 -0700
committerDamjan Marion <dmarion@me.com>2018-09-08 12:12:13 +0000
commitde9f08b0302d5b4cdc8fbfeb9a9585f46e8314f2 (patch)
tree563b654d8337e5502f994b33fd08a361a46c2df3 /src/vcl/vcl_private.h
parentda3eec1672d66131ec85f8420f4df070e6cf326d (diff)
vcl: register workers in order
Change-Id: Ibc74e7f7587f8b17fc0dcec20cc4530b9dd4c3ca Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl/vcl_private.h')
-rw-r--r--src/vcl/vcl_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h
index ba9094cd96b..75f16ca74c2 100644
--- a/src/vcl/vcl_private.h
+++ b/src/vcl/vcl_private.h
@@ -283,6 +283,9 @@ typedef struct vppcom_main_t_
/** Workers */
vcl_worker_t *workers;
+ /** Lock to protect worker registrations */
+ clib_spinlock_t workers_lock;
+
#ifdef VCL_ELOG
/* VPP Event-logger */
elog_main_t elog_main;