diff options
| author | Christian Hopps <chopps@labn.net> | 2023-11-28 20:14:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-28 20:14:42 +0100 |
| commit | bb6fe6beb9dc5ca891e064576644be0fd160da15 (patch) | |
| tree | 0243d6c552c5cf169c701ce10613698f15894dfe /zebra/zebra_rib.c | |
| parent | a526795144c88461e146f46529873243da2292e0 (diff) | |
| parent | 71f7ecb571cd8a87c97ae952db1f1fafa7ef627a (diff) | |
Merge pull request #14811 from donaldsharp/zebra_final_shutdown_finally
Zebra final shutdown finally
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 45a75ba24b..bd82d6caf8 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -4926,7 +4926,7 @@ static void check_route_info(void) } /* Routing information base initialize. */ -void rib_init(void) +void zebra_rib_init(void) { check_route_info(); @@ -4938,6 +4938,20 @@ void rib_init(void) zebra_dplane_init(rib_dplane_results); } +void zebra_rib_terminate(void) +{ + struct zebra_dplane_ctx *ctx; + + EVENT_OFF(t_dplane); + + ctx = dplane_ctx_dequeue(&rib_dplane_q); + while (ctx) { + dplane_ctx_fini(&ctx); + + ctx = dplane_ctx_dequeue(&rib_dplane_q); + } +} + /* * vrf_id_get_next * |
