Skip to content

Commit 65f81c2

Browse files
committed
Update defines.h
1 parent ff185b0 commit 65f81c2

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

dash-pipeline/bmv2/defines.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
#ifndef _DASH_DEFINES_H_
22
#define _DASH_DEFINES_H_
33

4-
#ifdef TABLE_FULL_SCALE
5-
#define TABLE_CA_TO_PA_SIZE (8 * 1024 * 1024)
6-
#define TABLE_ROUTING_SIZE (4 * 1024 * 1024)
4+
#if defined(TABLE_HERO_SCALE)
5+
#define TABLE_CA_TO_PA_SIZE (8 * 1000 * 1000)
6+
#define TABLE_ROUTING_SIZE (4 * 1000 * 1000)
77

8-
#else /* default size */
9-
#define TABLE_CA_TO_PA_SIZE (8 * 1024)
10-
#define TABLE_ROUTING_SIZE (4 * 1024)
8+
#elif defined(TABLE_BABY_HERO_SCALE)
9+
#define TABLE_CA_TO_PA_SIZE (8 * 1000 * 10)
10+
#define TABLE_ROUTING_SIZE (4 * 1000 * 10)
11+
12+
#else /* default/minimum size */
13+
#define TABLE_CA_TO_PA_SIZE 1000
14+
#define TABLE_ROUTING_SIZE 1000
1115

1216
#endif
1317

0 commit comments

Comments
 (0)