summaryrefslogtreecommitdiff
path: root/zebra/zebra_router.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-11-28 20:14:42 +0100
committerGitHub <noreply@github.com>2023-11-28 20:14:42 +0100
commitbb6fe6beb9dc5ca891e064576644be0fd160da15 (patch)
tree0243d6c552c5cf169c701ce10613698f15894dfe /zebra/zebra_router.c
parenta526795144c88461e146f46529873243da2292e0 (diff)
parent71f7ecb571cd8a87c97ae952db1f1fafa7ef627a (diff)
Merge pull request #14811 from donaldsharp/zebra_final_shutdown_finally
Zebra final shutdown finally
Diffstat (limited to 'zebra/zebra_router.c')
-rw-r--r--zebra/zebra_router.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c
index 5299716091..676475355e 100644
--- a/zebra/zebra_router.c
+++ b/zebra/zebra_router.c
@@ -241,11 +241,15 @@ void zebra_router_terminate(void)
zebra_pbr_ipset_entry_free);
hash_clean_and_free(&zrouter.ipset_hash, zebra_pbr_ipset_free);
hash_clean_and_free(&zrouter.iptable_hash, zebra_pbr_iptable_free);
+ hash_clean_and_free(&zrouter.filter_hash, NULL);
+ hash_clean_and_free(&zrouter.qdisc_hash, NULL);
+ hash_clean_and_free(&zrouter.class_hash, NULL);
#ifdef HAVE_SCRIPTING
zebra_script_destroy();
#endif
+ zebra_vxlan_terminate();
/* OS-specific deinit */
kernel_router_terminate();
}
@@ -295,10 +299,6 @@ void zebra_router_init(bool asic_offload, bool notify_on_ack,
hash_create_size(8, zebra_nhg_id_key, zebra_nhg_hash_id_equal,
"Zebra Router Nexthop Groups ID index");
- zrouter.rules_hash =
- hash_create_size(8, zebra_pbr_rules_hash_key,
- zebra_pbr_rules_hash_equal, "Rules Hash");
-
zrouter.qdisc_hash =
hash_create_size(8, zebra_tc_qdisc_hash_key,
zebra_tc_qdisc_hash_equal, "TC (qdisc) Hash");