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>
This commit is contained in:
Donald Sharp 2018-08-03 13:25:13 -04:00
parent fe08ba7e11
commit c2b2356701
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -126,9 +126,6 @@ struct route_table {
\
/* Each node of route. */ \
void *info; \
\
/* Aggregation. */ \
void *aggregate;
/* Each routing entry. */