]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: On shutdown stop hook calls for fpm rmac updates
authorDonald Sharp <sharpd@nvidia.com>
Thu, 18 May 2023 20:03:01 +0000 (16:03 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 19 May 2023 14:02:19 +0000 (10:02 -0400)
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>
zebra/zebra_fpm.c

index 4c2947cfd3a60855bf79352221dc8baeb06a7481..699f3ed1106419b382ae2ede18a28edc420b1f3b 100644 (file)
@@ -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;
 }