diff options
author | Donald Sharp <sharpd@nvidia.com> | 2023-05-18 22:03:01 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2023-05-19 16:02:19 +0200 |
commit | 5ec001aa53827236cd194ef631e59d04b429ac30 (patch) | |
tree | f694213ad14b39863f24a43491c054bf64621fd3 /zebra | |
parent | zebra: Properly handle zfpm_g->t_conn_down in zebra_fpm.c (diff) | |
download | frr-5ec001aa53827236cd194ef631e59d04b429ac30.tar.xz frr-5ec001aa53827236cd194ef631e59d04b429ac30.zip |
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>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/zebra_fpm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_fpm.c b/zebra/zebra_fpm.c index 4c2947cfd..699f3ed11 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; } |