From 5ec001aa53827236cd194ef631e59d04b429ac30 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 18 May 2023 16:03:01 -0400 Subject: [PATCH] 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 --- zebra/zebra_fpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebra/zebra_fpm.c b/zebra/zebra_fpm.c index 4c2947cfd3a6..699f3ed11064 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; }