]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Move aggregate pointer into aggregate route/table
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 3 Aug 2018 17:25:13 +0000 (13:25 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 30 Aug 2018 21:47:59 +0000 (17:47 -0400)
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>
lib/agg_table.h
lib/table.h

index 65d4137bc27a26a6e7e4fb89d79bbd11d49a9e22..235f0d37a390ef3417a11aa468c0bb61582fe235 100644 (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)
index 8304abe59b38ec5b3b349b1848a412ccf266a9a3..711ace111ec15a39d9ee9d611908f3718bc665f4 100644 (file)
@@ -126,9 +126,6 @@ struct route_table {
                                                                                \
        /* Each node of route. */                                              \
        void *info;                                                            \
-                                                                               \
-       /* Aggregation. */                                                     \
-       void *aggregate;
 
 
 /* Each routing entry. */