diff options
author | Damjan Marion <damarion@cisco.com> | 2016-02-06 19:16:21 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-02-14 00:02:31 +0000 |
commit | 3f46baf1bde45e93f9713d61f924175db46bfcf3 (patch) | |
tree | 176cabf5f09770838382f65b34cc2984d50dc545 /vlib/vlib/threads.h | |
parent | cfb2d804ce4a9262577c63b9c0245d45b2335e64 (diff) |
Increase VLIB_MAX_CPUS to 256
Change-Id: Iac68b38dda1a0f9e2242f9eab5b03e44bbcac269
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vlib/vlib/threads.h')
-rw-r--r-- | vlib/vlib/threads.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/vlib/vlib/threads.h b/vlib/vlib/threads.h index 07fc1d3758a..98f19c442e3 100644 --- a/vlib/vlib/threads.h +++ b/vlib/vlib/threads.h @@ -43,15 +43,12 @@ typedef struct vlib_thread_registration_ { uword * coremask; } vlib_thread_registration_t; -#define VLIB_MAX_CPUS 32 - -/* - * Objects passed around by "index" are cache-line aligned. - * We can stick the owner CPU into the low 6 bits. +/* + * Frames have their cpu / vlib_main_t index in the low-order N bits + * Make VLIB_MAX_CPUS a power-of-two, please... */ -#if VLIB_MAX_CPUS > 64 -#error VLIB_MAX_CPUS must be <= 64 -#endif + +#define VLIB_MAX_CPUS 256 #define VLIB_CPU_MASK (VLIB_MAX_CPUS - 1) /* 0x3f, max */ #define VLIB_OFFSET_MASK (~VLIB_CPU_MASK) |