From 73d3fa8e877247221787e4220718922f004940f8 Mon Sep 17 00:00:00 2001 From: Junhua Zhai Date: Thu, 14 Nov 2024 02:54:44 +0000 Subject: [PATCH] Update defines.h --- dash-pipeline/bmv2/defines.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dash-pipeline/bmv2/defines.h b/dash-pipeline/bmv2/defines.h index 827fe867a..19bc1d8c4 100644 --- a/dash-pipeline/bmv2/defines.h +++ b/dash-pipeline/bmv2/defines.h @@ -1,13 +1,17 @@ #ifndef _DASH_DEFINES_H_ #define _DASH_DEFINES_H_ -#ifdef TABLE_FULL_SCALE +#if defined(TABLE_HERO_SCALE) #define TABLE_CA_TO_PA_SIZE (8 * 1024 * 1024) #define TABLE_ROUTING_SIZE (4 * 1024 * 1024) -#else /* default size */ -#define TABLE_CA_TO_PA_SIZE (8 * 1024) -#define TABLE_ROUTING_SIZE (4 * 1024) +#elif defined(TABLE_BABY_HERO_SCALE) +#define TABLE_CA_TO_PA_SIZE (8 * 1024 * 10) +#define TABLE_ROUTING_SIZE (4 * 1024 * 10) + +#else /* default/minimum size */ +#define TABLE_CA_TO_PA_SIZE 1024 +#define TABLE_ROUTING_SIZE 1024 #endif