diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-01-31 13:37:25 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-02-01 07:54:35 -0500 | 
| commit | bb1e1265aac482eaf52ab5ab7d0dab63da7d15b3 (patch) | |
| tree | 1b7718fcc950c0f330825cd1ab24f4cfd530d357 /bgpd/bgp_memory.c | |
| parent | a8e8f1bc72b7b638d29dc6c0bf78679487a3331d (diff) | |
bgpd: Save memory when using bgp_path_info_extra and vnc
Structure size of bgp_path_info_extra when compiled
with vnc is 184 bytes.  Reduce this size to 72 bytes
when compiled w/ vnc but not necessarily turned
on vnc.
With 2 full bgp feeds this saves aproximately 100mb
when compiling with vnc and not using vnc.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_memory.c')
| -rw-r--r-- | bgpd/bgp_memory.c | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_memory.c b/bgpd/bgp_memory.c index 38aa4f1c38..0764f1ed18 100644 --- a/bgpd/bgp_memory.c +++ b/bgpd/bgp_memory.c @@ -42,6 +42,7 @@ DEFINE_MTYPE(BGPD, BGP_ROUTE_EXTRA, "BGP ancillary route info");  DEFINE_MTYPE(BGPD, BGP_ROUTE_EXTRA_EVPN, "BGP extra info for EVPN");  DEFINE_MTYPE(BGPD, BGP_ROUTE_EXTRA_FS, "BGP extra info for flowspec");  DEFINE_MTYPE(BGPD, BGP_ROUTE_EXTRA_VRFLEAK, "BGP extra info for vrf leaking"); +DEFINE_MTYPE(BGPD, BGP_ROUTE_EXTRA_VNC, "BGP extra info for vnc");  DEFINE_MTYPE(BGPD, BGP_CONN, "BGP connected");  DEFINE_MTYPE(BGPD, BGP_STATIC, "BGP static");  DEFINE_MTYPE(BGPD, BGP_ADVERTISE_ATTR, "BGP adv attr");  | 
