forked from Mirror/frr
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);
|
SET_FLAG(zvrf->flags, ZEBRA_VRF_RETAIN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (zrouter.lsp_process_q)
|
|
||||||
work_queue_free_and_null(&zrouter.lsp_process_q);
|
|
||||||
|
|
||||||
vrf_terminate();
|
vrf_terminate();
|
||||||
|
|
||||||
|
|
|
@ -235,6 +235,9 @@ void zebra_router_terminate(void)
|
||||||
RB_FOREACH_SAFE (zrt, zebra_router_table_head, &zrouter.tables, tmp)
|
RB_FOREACH_SAFE (zrt, zebra_router_table_head, &zrouter.tables, tmp)
|
||||||
zebra_router_free_table(zrt);
|
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);
|
work_queue_free_and_null(&zrouter.ribq);
|
||||||
meta_queue_free(zrouter.mq);
|
meta_queue_free(zrouter.mq);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue