mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
pimd: Remove possibility of trying to send Register when no RPF
On shutdown processing we may have gotten a interface down event which might clear the rpf interface and we might trigger a work queue item on the vxlan_sg to send a NULL register. Ensure that we cannot attempt to do the impossible. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
3c582f627a
commit
7a11dc746f
@ -85,9 +85,17 @@ static void pim_vxlan_do_reg_work(void)
|
|||||||
if (PIM_DEBUG_VXLAN)
|
if (PIM_DEBUG_VXLAN)
|
||||||
zlog_debug("vxlan SG %s periodic NULL register",
|
zlog_debug("vxlan SG %s periodic NULL register",
|
||||||
vxlan_sg->sg_str);
|
vxlan_sg->sg_str);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If we are on the work queue *and* the rpf
|
||||||
|
* has been lost on the vxlan_sg->up let's
|
||||||
|
* make sure that we don't send it.
|
||||||
|
*/
|
||||||
|
if (vxlan_sg->up->rpf.source_nexthop.interface) {
|
||||||
pim_null_register_send(vxlan_sg->up);
|
pim_null_register_send(vxlan_sg->up);
|
||||||
++work_cnt;
|
++work_cnt;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (work_cnt > vxlan_info.max_work_cnt) {
|
if (work_cnt > vxlan_info.max_work_cnt) {
|
||||||
vxlan_info.next_work = listnode->next;
|
vxlan_info.next_work = listnode->next;
|
||||||
|
Loading…
Reference in New Issue
Block a user