summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_memory.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-11-15 20:52:10 +0100
committerDonald Sharp <sharpd@nvidia.com>2023-11-21 18:41:18 +0100
commit0b81a7524d2056b53ea86aab8095f528d645592d (patch)
treef69e9cd815085864ec41ae8b4bbbd4deb1ca3ad7 /bgpd/bgp_memory.c
parentzebra: Cleanup dplane provider owned ctx's on shutdown (diff)
downloadfrr-0b81a7524d2056b53ea86aab8095f528d645592d.tar.xz
frr-0b81a7524d2056b53ea86aab8095f528d645592d.zip
bgpd: MTYPE_BGP was being overused split up
The MTYPE_BGP memory type was being over used as both the handler for the bgp instance itself as well as memory associated with name strings. Let's separate out the two. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_memory.c')
-rw-r--r--bgpd/bgp_memory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_memory.c b/bgpd/bgp_memory.c
index 5c3067f96..38aa4f1c3 100644
--- a/bgpd/bgp_memory.c
+++ b/bgpd/bgp_memory.c
@@ -15,6 +15,7 @@
DEFINE_MGROUP(BGPD, "bgpd");
DEFINE_MTYPE(BGPD, BGP, "BGP instance");
+DEFINE_MTYPE(BGPD, BGP_NAME, "BGP Name data");
DEFINE_MTYPE(BGPD, BGP_LISTENER, "BGP listen socket details");
DEFINE_MTYPE(BGPD, BGP_PEER, "BGP peer");
DEFINE_MTYPE(BGPD, BGP_PEER_CONNECTION, "BGP peer connection");