diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2020-10-30 13:34:30 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-11-04 15:18:01 -0500 | 
| commit | 26742171e6ba292a9fd2a72668315d2a699717b5 (patch) | |
| tree | 37aba12cebe28eeef7ee69e95d0388e7620ceaae /bgpd/bgp_table.h | |
| parent | 9535a960a88e281a921922668588d7b762742f6a (diff) | |
bgpd: Remove pointer structure from `struct bgp_dest`
The `struct listnode *rt_node` data structure is adding
8 bytes of size to the `struct bgp_dest`.  This is a large
amount of data for a flag we are already setting on each
node for this.  Just set the flag and use that to figure
out who we are doing graceful restart on.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_table.h')
| -rw-r--r-- | bgpd/bgp_table.h | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_table.h b/bgpd/bgp_table.h index 9dd27628ce..4e9abf863d 100644 --- a/bgpd/bgp_table.h +++ b/bgpd/bgp_table.h @@ -102,8 +102,7 @@ struct bgp_node {  #define BGP_NODE_LABEL_CHANGED          (1 << 2)  #define BGP_NODE_REGISTERED_FOR_LABEL   (1 << 3)  #define BGP_NODE_SELECT_DEFER           (1 << 4) -	/* list node pointer */ -	struct listnode *rt_node; +  	struct bgp_addpath_node_data tx_addpath;  	enum bgp_path_selection_reason reason;  | 
