summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2024-01-12 17:50:55 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2024-01-16 17:40:56 +0000
commit1cfac4e6e4b396c4c9faaa4115b6c4940204aa3f (patch)
treef3da14ab49c731ff39e877f0bcbf5e9126e958a9
parent7e9513b8fcc838114ca58a093c751f3a50bafed6 (diff)
vlib: remove unused code
Type: improvement Change-Id: I2c54cb3eb41ed35f114eca75fb6e2be3eb3f4ca1 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--src/vlib/threads.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/vlib/threads.h b/src/vlib/threads.h
index 97df3d253a0..636212c939e 100644
--- a/src/vlib/threads.h
+++ b/src/vlib/threads.h
@@ -45,22 +45,6 @@ typedef struct vlib_thread_registration_
uword *coremask;
} vlib_thread_registration_t;
-/*
- * Frames have their cpu / vlib_main_t index in the low-order N bits
- * Make VLIB_MAX_CPUS a power-of-two, please...
- */
-
-#ifndef VLIB_MAX_CPUS
-#define VLIB_MAX_CPUS 256
-#endif
-
-#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)
-
#define VLIB_LOG2_THREAD_STACK_SIZE (21)
#define VLIB_THREAD_STACK_SIZE (1<<VLIB_LOG2_THREAD_STACK_SIZE)