diff options
author | Damjan Marion <damarion@cisco.com> | 2021-12-23 17:05:02 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2021-12-24 12:44:34 +0000 |
commit | b32bd70c1e83fff90d060ea1bbb41eb55e3f62b1 (patch) | |
tree | a4b45589446dd63741fc662e3bab28fd5a81562f /src/vlib/threads.c | |
parent | 65409fb341c110bf905be0e29833405bb3bbf4e6 (diff) |
vlib: introduce vlib frame aux data
Type: improvement
Change-Id: I53890a13210cfb0d2b2d9d8cfd9b15118d3bb273
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/threads.c')
-rw-r--r-- | src/vlib/threads.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/vlib/threads.c b/src/vlib/threads.c index f45e9358a89..760aa8b5776 100644 --- a/src/vlib/threads.c +++ b/src/vlib/threads.c @@ -626,8 +626,9 @@ start_workers (vlib_main_t * vm) vm_clone->thread_index = worker_thread_index; vm_clone->heap_base = w->thread_mheap; - vm_clone->heap_aligned_base = (void *) - (((uword) w->thread_mheap) & ~(VLIB_FRAME_ALIGN - 1)); + vm_clone->heap_aligned_base = + (void *) (((uword) w->thread_mheap) & + ~(CLIB_CACHE_LINE_BYTES - 1)); vm_clone->pending_rpc_requests = 0; vec_validate (vm_clone->pending_rpc_requests, 0); _vec_len (vm_clone->pending_rpc_requests) = 0; @@ -730,10 +731,7 @@ start_workers (vlib_main_t * vm) CLIB_CACHE_LINE_BYTES); /* Create per-thread frame freelist */ - nm_clone->frame_sizes = vec_new (vlib_frame_size_t, 1); -#ifdef VLIB_SUPPORTS_ARBITRARY_SCALAR_SIZES - nm_clone->frame_size_hash = hash_create (0, sizeof (uword)); -#endif + nm_clone->frame_sizes = 0; nm_clone->node_by_error = nm->node_by_error; /* Packet trace buffers are guaranteed to be empty, nothing to do here */ |