diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-11-16 12:55:34 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-11-21 12:41:18 -0500 |
| commit | a1c1b9d9c5065d95eec7a860e067c2c9a6ca6937 (patch) | |
| tree | 2091c701da0452bde1a0fb0c79202cd7b204fef8 /zebra/rib.h | |
| parent | 7bf3c2fb195f34382e1bf00ed2c91310a1dc9f86 (diff) | |
zebra: On shutdown, ensure ctx's in rib_dplane_q are freed
a) Rename rib_init to zebra_rib_init() to better follow how
things are named
b) on shutdown cycle through the rib_dplane_q and free
up any contexts sitting in it.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/rib.h')
| -rw-r--r-- | zebra/rib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/rib.h b/zebra/rib.h index 665f286f67..2f9b0ccb7e 100644 --- a/zebra/rib.h +++ b/zebra/rib.h @@ -414,7 +414,8 @@ extern void rib_update_table(struct route_table *table, extern void rib_sweep_route(struct event *t); extern void rib_sweep_table(struct route_table *table); extern void rib_close_table(struct route_table *table); -extern void rib_init(void); +extern void zebra_rib_init(void); +extern void zebra_rib_terminate(void); extern unsigned long rib_score_proto(uint8_t proto, unsigned short instance); extern unsigned long rib_score_proto_table(uint8_t proto, unsigned short instance, |
