summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_memory.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2022-01-26 20:40:29 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2022-01-26 20:52:40 +0100
commit2703b7db19cebad82772d5210132dab412b855c3 (patch)
tree77735d8cdaa6ba148eaac599d7d4e4bc0a18e909 /bgpd/bgp_memory.c
parentMerge pull request #10425 from ckishimo/ospf6d_nssa (diff)
downloadfrr-2703b7db19cebad82772d5210132dab412b855c3.tar.xz
frr-2703b7db19cebad82772d5210132dab412b855c3.zip
bgpd: Move out ipv6_ecommunity struct from attr to attr_extra
This is the initial work to move all non IPv4/IPv6 AFI related attributes/structs to attr->extra to avoid unnecesarry allocations. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.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 ffb1ec162..7fbadab69 100644
--- a/bgpd/bgp_memory.c
+++ b/bgpd/bgp_memory.c
@@ -43,6 +43,7 @@ DEFINE_MTYPE(BGPD, BGP_UPDGRP, "BGP update group");
DEFINE_MTYPE(BGPD, BGP_UPD_SUBGRP, "BGP update subgroup");
DEFINE_MTYPE(BGPD, BGP_PACKET, "BGP packet");
DEFINE_MTYPE(BGPD, ATTR, "BGP attribute");
+DEFINE_MTYPE(BGPD, ATTR_EXTRA, "BGP extra attribute");
DEFINE_MTYPE(BGPD, AS_PATH, "BGP aspath");
DEFINE_MTYPE(BGPD, AS_SEG, "BGP aspath seg");
DEFINE_MTYPE(BGPD, AS_SEG_DATA, "BGP aspath segment data");