summaryrefslogtreecommitdiff
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-11-16 12:55:34 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-11-21 12:41:18 -0500
commita1c1b9d9c5065d95eec7a860e067c2c9a6ca6937 (patch)
tree2091c701da0452bde1a0fb0c79202cd7b204fef8 /zebra/rib.h
parent7bf3c2fb195f34382e1bf00ed2c91310a1dc9f86 (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.h3
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,