summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-03 13:25:13 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-08-30 17:47:59 -0400
commitc2b2356701607af2bc0f7142eba1f5352b23f901 (patch)
tree4b5085462442a2bd406a3c954209f778d6ef486a
parentfe08ba7e1103e6c334fe97b44c43f6762ed7c8f3 (diff)
lib: Move aggregate pointer into aggregate route/table
Move the aggregate pointer from the route_node into agg_node so that people using struct route_node will see a savings in data size. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--lib/agg_table.h2
-rw-r--r--lib/table.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/agg_table.h b/lib/agg_table.h
index 65d4137bc2..235f0d37a3 100644
--- a/lib/agg_table.h
+++ b/lib/agg_table.h
@@ -37,6 +37,8 @@ struct agg_node {
*/
ROUTE_NODE_FIELDS
+ /* Aggregation. */
+ void *aggregate;
};
static inline struct route_node *agg_node_to_rnode(struct agg_node *node)
diff --git a/lib/table.h b/lib/table.h
index 8304abe59b..711ace111e 100644
--- a/lib/table.h
+++ b/lib/table.h
@@ -126,9 +126,6 @@ struct route_table {
\
/* Each node of route. */ \
void *info; \
- \
- /* Aggregation. */ \
- void *aggregate;
/* Each routing entry. */