From 848191d3e1b1b2febb1f67e5121487f871e67b56 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Thu, 28 Apr 2016 16:24:15 -0400 Subject: 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 --- vnet/vnet/devices/dpdk/threads.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'vnet') diff --git a/vnet/vnet/devices/dpdk/threads.c b/vnet/vnet/devices/dpdk/threads.c index d8fb698e66b..c66db722394 100644 --- a/vnet/vnet/devices/dpdk/threads.c +++ b/vnet/vnet/devices/dpdk/threads.c @@ -277,7 +277,6 @@ VLIB_REGISTER_THREAD (worker_thread_reg, static) = { .name = "workers", .short_name = "wk", .function = dpdk_worker_thread_fn, - .mheap_size = 256<<20, }; #endif @@ -293,7 +292,6 @@ VLIB_REGISTER_THREAD (io_thread_reg, static) = { .name = "io", .short_name = "io", .function = dpdk_io_thread_fn, - .mheap_size = 256<<20, }; #endif -- cgit 1.2.3-korg