mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-30 10:17:49 +00:00
zebra: free LSP workqueue later during shutdown
Free the LSP workqueue later during shutdown, so that zebra has enough time to clean up and uninstall any LSPs. Signed-off-by: Mark Stapp <mstapp@nvidia.com>
This commit is contained in:
parent
d9a03ad330
commit
dd9538c5f3
@ -182,8 +182,6 @@ static void sigint(void)
|
||||
SET_FLAG(zvrf->flags, ZEBRA_VRF_RETAIN);
|
||||
}
|
||||
}
|
||||
if (zrouter.lsp_process_q)
|
||||
work_queue_free_and_null(&zrouter.lsp_process_q);
|
||||
|
||||
vrf_terminate();
|
||||
|
||||
|
@ -235,6 +235,9 @@ void zebra_router_terminate(void)
|
||||
RB_FOREACH_SAFE (zrt, zebra_router_table_head, &zrouter.tables, tmp)
|
||||
zebra_router_free_table(zrt);
|
||||
|
||||
if (zrouter.lsp_process_q)
|
||||
work_queue_free_and_null(&zrouter.lsp_process_q);
|
||||
|
||||
work_queue_free_and_null(&zrouter.ribq);
|
||||
meta_queue_free(zrouter.mq);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user