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:
Donald Sharp 2020-02-26 09:33:46 -05:00
parent 514bda4715
commit 3c582f627a
3 changed files with 9 additions and 0 deletions

View File

@ -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);
}

View File

@ -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 */

View File

@ -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();