diff options
author | Florin Coras <fcoras@cisco.com> | 2018-09-07 14:32:58 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-08 12:12:13 +0000 |
commit | de9f08b0302d5b4cdc8fbfeb9a9585f46e8314f2 (patch) | |
tree | 563b654d8337e5502f994b33fd08a361a46c2df3 /src/vcl/vppcom.c | |
parent | da3eec1672d66131ec85f8420f4df070e6cf326d (diff) |
vcl: register workers in order
Change-Id: Ibc74e7f7587f8b17fc0dcec20cc4530b9dd4c3ca
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl/vppcom.c')
-rw-r--r-- | src/vcl/vppcom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 15622014dcd..645550812b1 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -700,6 +700,7 @@ vppcom_app_create (char *app_name) svm_fifo_segment_main_init (vcl_cfg->segment_baseva, 20 /* timeout in secs */ ); pool_init_fixed (vcm->workers, vcl_cfg->max_workers); + clib_spinlock_init (&vcm->workers_lock); vcl_worker_alloc_and_init (); } |