]> git.puffer.fish Git - matthieu/frr.git/commitdiff
isisd: remove unnecessary QOBJ usage
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 11 Aug 2020 02:04:19 +0000 (23:04 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 11 Aug 2020 04:07:11 +0000 (01:07 -0300)
The global isis structure can't be created/destroyed using the CLI,
so there's no need to define a QOBJ for it.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
isisd/isisd.c
isisd/isisd.h

index 79060351f71addf8fb3043f6efdd399afe7ab589..97a4688460b2f93247c48a4d51f092dc366f5068 100644 (file)
@@ -77,7 +77,6 @@ unsigned long debug_sr;
 
 struct isis *isis = NULL;
 
-DEFINE_QOBJ_TYPE(isis)
 DEFINE_QOBJ_TYPE(isis_area)
 
 /*
@@ -105,8 +104,6 @@ void isis_new(unsigned long process_id, vrf_id_t vrf_id)
        isis->init_circ_list = list_new();
        isis->uptime = time(NULL);
        dyn_cache_init();
-
-       QOBJ_REG(isis, isis);
 }
 
 struct isis_area *isis_area_create(const char *area_tag)
index 2b76d44c57358d9aeda2fc4f1ccfc7f79ca5c59f..5a6c704b7c391a2bc344777bae28f0a74059c8ba 100644 (file)
@@ -77,12 +77,9 @@ struct isis {
        uint32_t circuit_ids_used[8];     /* 256 bits to track circuit ids 1 through 255 */
 
        struct route_table *ext_info[REDIST_PROTOCOL_COUNT];
-
-       QOBJ_FIELDS
 };
 
 extern struct isis *isis;
-DECLARE_QOBJ_TYPE(isis_area)
 
 enum spf_tree_id {
        SPFTREE_IPV4 = 0,