mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 10:54:47 +00:00
pimd: When shutting down stop the vxlan worker thread
Upon shutdown stop the vxlan worker thread. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
514bda4715
commit
3c582f627a
@ -1158,3 +1158,8 @@ void pim_vxlan_exit(struct pim_instance *pim)
|
||||
pim->vxlan.sg_hash = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void pim_vxlan_terminate(void)
|
||||
{
|
||||
pim_vxlan_work_timer_setup(false);
|
||||
}
|
||||
|
@ -148,4 +148,6 @@ extern bool pim_vxlan_do_mlag_reg(void);
|
||||
extern void pim_vxlan_inherit_mlag_flags(struct pim_instance *pim,
|
||||
struct pim_upstream *up, bool inherit);
|
||||
|
||||
/* Shutdown of PIM stop the thread */
|
||||
extern void pim_vxlan_terminate(void);
|
||||
#endif /* PIM_VXLAN_H */
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "pim_static.h"
|
||||
#include "pim_rp.h"
|
||||
#include "pim_ssm.h"
|
||||
#include "pim_vxlan.h"
|
||||
#include "pim_zlookup.h"
|
||||
#include "pim_zebra.h"
|
||||
|
||||
@ -133,6 +134,7 @@ void pim_terminate(void)
|
||||
prefix_list_delete_hook(NULL);
|
||||
prefix_list_reset();
|
||||
|
||||
pim_vxlan_terminate();
|
||||
pim_vrf_terminate();
|
||||
|
||||
zclient = pim_zebra_zclient_get();
|
||||
|
Loading…
Reference in New Issue
Block a user