Skip to content

Commit

Permalink
zebra: On shutdown stop hook calls for fpm rmac updates
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
donaldsharp committed May 19, 2023
1 parent 5403343 commit 5ec001a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zebra/zebra_fpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5ec001a

Please sign in to comment.