Merge pull request #18715 from FRRouting/mergify/bp/stable/10.2/pr-18672
Some checks failed
build-test / Build the ubuntu 22.04 docker image (push) Has been cancelled
build-test / Test ubuntu docker image (push) Has been cancelled

pimd: Fix for crash during networking restart (backport #18672)
This commit is contained in:
Donald Sharp 2025-04-24 10:00:57 -04:00 committed by GitHub
commit 0a5862a0d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View file

@ -276,4 +276,6 @@ void pim_vrf_terminate(void)
}
vrf_terminate();
/* Delete the vxlan_info.work_list as all the VRFs are deleted*/
pim_vxlan_work_list_delete();
}

View file

@ -1250,9 +1250,14 @@ void pim_vxlan_exit(struct pim_instance *pim)
{
hash_clean_and_free(&pim->vxlan.sg_hash,
(void (*)(void *))pim_vxlan_sg_del_item);
}
if (vxlan_info.work_list)
void pim_vxlan_work_list_delete(void)
{
if (vxlan_info.work_list) {
list_delete(&vxlan_info.work_list);
UNSET_FLAG(vxlan_info.flags, PIM_VXLANF_WORK_INITED);
}
}
void pim_vxlan_terminate(void)

View file

@ -33,5 +33,6 @@ struct pim_vxlan_instance {
extern void pim_vxlan_init(struct pim_instance *pim);
extern void pim_vxlan_exit(struct pim_instance *pim);
void pim_vxlan_work_list_delete(void);
#endif /* PIM_VXLAN_INSTANCE_H */