mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge pull request #18715 from FRRouting/mergify/bp/stable/10.2/pr-18672
pimd: Fix for crash during networking restart (backport #18672)
This commit is contained in:
commit
0a5862a0d3
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue