summaryrefslogtreecommitdiffstats
path: root/vlib
diff options
context:
space:
mode:
Diffstat (limited to 'vlib')
-rw-r--r--vlib/vlib/threads.h4
1 files changed, 4 insertions, 0 deletions
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)