diff options
| author | Mark Stapp <mstapp@nvidia.com> | 2021-11-12 15:10:00 -0500 |
|---|---|---|
| committer | Mark Stapp <mstapp@nvidia.com> | 2021-11-12 15:10:00 -0500 |
| commit | dd9538c5f36f9d6110f1465b8708d0d7529f2cc7 (patch) | |
| tree | 2235799d254c0e512a832e642b4b016d0f4e2d47 /zebra/zebra_router.c | |
| parent | d9a03ad330c20d900caf4e1c266389bd8d2da651 (diff) | |
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>
Diffstat (limited to 'zebra/zebra_router.c')
| -rw-r--r-- | zebra/zebra_router.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c index a80c573855..4ce756c953 100644 --- a/zebra/zebra_router.c +++ b/zebra/zebra_router.c @@ -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); |
