aboutsummaryrefslogtreecommitdiffstats
path: root/vpp
diff options
context:
space:
mode:
authorDave Barach <dbarach@cisco.com>2016-04-28 16:24:15 -0400
committerDamjan Marion <damarion@cisco.com>2016-04-29 11:36:09 +0000
commit848191d3e1b1b2febb1f67e5121487f871e67b56 (patch)
treec70269ca7019b2d62cef4b3aeb1f4b43e6d63599 /vpp
parent7226b84d7418fcbb9b8dd42045aa7a5f18da9679 (diff)
Clean up per-thread mheap setup.
The stats thread was sharing the main mheap when we started at least one worker or I/O thread, but ran on its own mheap when we started 0 worker + io threads. Net of this change; if a VLIB_REGISTER_THREAD instance specifies a per-thread mheap, a per-thread mheap will be provided. Otherwise, threads share the main heap. The stats thread now uses the main heap. Simpler is better. Change-Id: I1fff0dd66ae8f7dfe44923f702734e2832b55b09 Signed-off-by: Dave Barach <dbarach@cisco.com>
Diffstat (limited to 'vpp')
-rw-r--r--vpp/stats/stats.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/vpp/stats/stats.c b/vpp/stats/stats.c
index cd53a205fcc..566655d2905 100644
--- a/vpp/stats/stats.c
+++ b/vpp/stats/stats.c
@@ -944,5 +944,4 @@ VLIB_REGISTER_THREAD (stats_thread_reg, static) = {
.count = 1,
.no_data_structure_clone = 1,
.use_pthreads = 1,
- .mheap_size = 2<<20,
};