From ce8debfe0faaea959aed846f83a0e1ade5f5acd2 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Sat, 6 Feb 2016 19:16:21 +0100 Subject: Increase number of per-cpu mheaps to 256 It also includes check to ensure that number of per-cpu mheaps is not lower than number of cpus. Change-Id: Ibc68b34dda130f922243f9ea15b03e44bbcac269 Signed-off-by: Damjan Marion --- vlib/vlib/threads.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vlib') diff --git a/vlib/vlib/threads.h b/vlib/vlib/threads.h index 98f19c442e3..6c16878a5b5 100644 --- a/vlib/vlib/threads.h +++ b/vlib/vlib/threads.h @@ -50,6 +50,10 @@ typedef struct vlib_thread_registration_ { #define VLIB_MAX_CPUS 256 +#if VLIB_MAX_CPUS > CLIB_MAX_MHEAPS +#error Please increase number of per-cpu mheaps +#endif + #define VLIB_CPU_MASK (VLIB_MAX_CPUS - 1) /* 0x3f, max */ #define VLIB_OFFSET_MASK (~VLIB_CPU_MASK) -- cgit 1.2.3-korg