]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: make a zif MTYPE internal/static
authorMark Stapp <mjs@cisco.com>
Tue, 15 Oct 2024 15:31:22 +0000 (11:31 -0400)
committerMark Stapp <mjs@cisco.com>
Mon, 28 Oct 2024 15:09:52 +0000 (11:09 -0400)
Make an MTYPE used in zifs internal/static

Signed-off-by: Mark Stapp <mjs@cisco.com>
zebra/interface.c
zebra/interface.h

index f1f1b17209a7253845305fbbb75ca82f0059e048..3e92053ba974e489e3e60e64ed3ec278c1f15154 100644 (file)
@@ -43,7 +43,7 @@ DEFINE_MTYPE_STATIC(ZEBRA, ZINFO, "Zebra Interface Information");
 DEFINE_HOOK(zebra_if_extra_info, (struct vty * vty, struct interface *ifp),
            (vty, ifp));
 
-DEFINE_MTYPE(ZEBRA, ZIF_DESC, "Intf desc");
+DEFINE_MTYPE_STATIC(ZEBRA, ZIF_DESC, "Intf desc");
 
 static void if_down_del_nbr_connected(struct interface *ifp);
 
index 8d19c1838fbfc0338effaaeb13645b815b2ec34a..d27d7b89117ac37fbf21f12823fed1471108cc04 100644 (file)
@@ -94,9 +94,6 @@ enum zebra_if_flags {
 #define ZEBRA_IF_IS_PROTODOWN_ONLY_EXTERNAL(zif)                               \
        ((zif)->protodown_rc == ZEBRA_PROTODOWN_EXTERNAL)
 
-/* Mem type for zif desc */
-DECLARE_MTYPE(ZIF_DESC);
-
 /* `zebra' daemon local interface structure. */
 struct zebra_if {
        /* back pointer to the interface */