From: Damjan Marion Date: Fri, 12 Jan 2024 17:50:55 +0000 (+0000) Subject: vlib: remove unused code X-Git-Tag: v24.06-rc0~29 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=1cfac4e6e4b396c4c9faaa4115b6c4940204aa3f;p=vpp.git vlib: remove unused code Type: improvement Change-Id: I2c54cb3eb41ed35f114eca75fb6e2be3eb3f4ca1 Signed-off-by: Damjan Marion --- 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<