summaryrefslogtreecommitdiff
path: root/bgpd/bgp_memory.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-11-15 14:52:10 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-11-21 12:41:18 -0500
commit0b81a7524d2056b53ea86aab8095f528d645592d (patch)
treef69e9cd815085864ec41ae8b4bbbd4deb1ca3ad7 /bgpd/bgp_memory.c
parent318a8c98b4f8cf29a91da45ad3708a4aaf97c55c (diff)
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 5c3067f96d..38aa4f1c38 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");