Skip to content

Commit

Permalink
lib: Move aggregate pointer into aggregate route/table
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
donaldsharp committed Aug 30, 2018
1 parent 046e0c1 commit 58570de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/agg_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions lib/table.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ struct route_table {
\
/* Each node of route. */ \
void *info; \
\
/* Aggregation. */ \
void *aggregate;


/* Each routing entry. */
Expand Down

0 comments on commit 58570de

Please sign in to comment.