diff options
author | Florin Coras <fcoras@cisco.com> | 2019-08-02 10:53:01 -0700 |
---|---|---|
committer | Florin Coras <fcoras@cisco.com> | 2019-08-02 11:35:07 -0700 |
commit | d2c9e702098a4fcc45310d59e18bffc9626d3849 (patch) | |
tree | 6732647f230896901eecc9c67c55476f442d3c31 /src/vcl | |
parent | d516ca42d3fcbdc5da9877ab07298f8bb891bff3 (diff) |
vcl: initialize worker thread index and heap map slot
Type: fix
Change-Id: I7e762b43a2a074dc81cb7b0f6446e315e63ecae5
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl')
-rw-r--r-- | src/vcl/vcl_private.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vcl/vcl_private.c b/src/vcl/vcl_private.c index 3e82becfc93..13794ea4f9c 100644 --- a/src/vcl/vcl_private.c +++ b/src/vcl/vcl_private.c @@ -191,6 +191,9 @@ vcl_worker_alloc_and_init () if (vcl_get_worker_index () != ~0) return 0; + /* Use separate heap map entry for worker */ + clib_mem_set_thread_index (); + if (pool_elts (vcm->workers) == vcm->cfg.max_workers) { VDBG (0, "max-workers %u limit reached", vcm->cfg.max_workers); |