From 89554d49f502f01a651788527dea6a1d001fda28 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 3 Aug 2018 13:25:13 -0400 Subject: [PATCH] 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 --- lib/agg_table.h | 2 ++ lib/table.h | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/agg_table.h b/lib/agg_table.h index c3278e235c5c..5267380c9691 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 8304abe59b38..711ace111ec1 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. */