Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
build: add yaml file linting to make checkstyle
[vpp.git]
/
src
/
vcl
/
vcl_private.c
diff --git
a/src/vcl/vcl_private.c
b/src/vcl/vcl_private.c
index
3e82bec
..
f431396
100644
(file)
--- 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;
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);
if (pool_elts (vcm->workers) == vcm->cfg.max_workers)
{
VDBG (0, "max-workers %u limit reached", vcm->cfg.max_workers);
@@
-273,6
+276,12
@@
vcl_worker_set_bapi (void)
return -1;
}
return -1;
}
+svm_msg_q_t *
+vcl_worker_ctrl_mq (vcl_worker_t * wrk)
+{
+ return wrk->ctrl_mq;
+}
+
void
vcl_segment_table_add (u64 segment_handle, u32 svm_segment_index)
{
void
vcl_segment_table_add (u64 segment_handle, u32 svm_segment_index)
{