summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-05-18 16:03:01 -0400
committerDonald Sharp <sharpd@nvidia.com>2023-05-19 10:02:19 -0400
commit5ec001aa53827236cd194ef631e59d04b429ac30 (patch)
treef694213ad14b39863f24a43491c054bf64621fd3
parent540334324c59e3ae92622ba211b073488e477460 (diff)
zebra: On shutdown stop hook calls for fpm rmac updates
When shutting down zebra, the hook for the rmac update was not being unregistered. As such it would be possible to get into a condition where more rmacs are being added to the queue for handling in the future after we are told to shutdown. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r--zebra/zebra_fpm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_fpm.c b/zebra/zebra_fpm.c
index 4c2947cfd3..699f3ed110 100644
--- a/zebra/zebra_fpm.c
+++ b/zebra/zebra_fpm.c
@@ -2049,6 +2049,8 @@ static int zfpm_fini(void)
zfpm_stop_stats_timer();
hook_unregister(rib_update, zfpm_trigger_update);
+ hook_unregister(zebra_rmac_update, zfpm_trigger_rmac_update);
+
return 0;
}