Skip to content

Commit

Permalink
Update defines.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyzhai committed Nov 14, 2024
1 parent ff185b0 commit 73d3fa8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dash-pipeline/bmv2/defines.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 73d3fa8

Please sign in to comment.