Clean up per-thread mheap setup. 18/918/2
authorDave Barach <[email protected]>
Thu, 28 Apr 2016 20:24:15 +0000 (16:24 -0400)
committerDamjan Marion <[email protected]>
Fri, 29 Apr 2016 11:36:09 +0000 (11:36 +0000)
commit848191d3e1b1b2febb1f67e5121487f871e67b56
treec70269ca7019b2d62cef4b3aeb1f4b43e6d63599
parent7226b84d7418fcbb9b8dd42045aa7a5f18da9679
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 <[email protected]>
vlib/vlib/threads.c
vnet/vnet/devices/dpdk/threads.c
vpp/stats/stats.c