summaryrefslogtreecommitdiffstats
path: root/pimd/pim_nht.c
diff options
context:
space:
mode:
authorSarita Patra <saritap@vmware.com>2019-02-22 16:29:24 +0100
committerSarita Patra <saritap@vmware.com>2019-02-25 08:27:08 +0100
commit1250cb5df29b7ac663fc57ee75ec18899cb6e608 (patch)
tree1c8785c1a7e2cedc6faddf283ea49871a97aafdc /pimd/pim_nht.c
parentpimd: clear rp_info source_nexthop when RP becomes not reachable (diff)
downloadfrr-1250cb5df29b7ac663fc57ee75ec18899cb6e608.tar.xz
frr-1250cb5df29b7ac663fc57ee75ec18899cb6e608.zip
pimd: clear upstream rpf information when RP becomes not reachable
When route to RP gets modified, FRR receives a notification from zebra, and call the function pim_resolve_upstream_nh() to compute the nexthop and update upstream->rpf structure. Issue: In case when RP becomes not reachable, FRR only uninstall the mroute from the kernal, but not update the upstream->rpf structure. Fix: When FRR receives a notification from zebra saying RP becomes not reachable, then update the following fields. 1. update channel_oil incoming interface as MAXVIFS 2. Un-install the mroute from the kernel. 3. Switch upstream state from JOINED to NOTJOINED. 4. Clear the nexthop information of the upstream. Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_nht.c')
-rw-r--r--pimd/pim_nht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_nht.c b/pimd/pim_nht.c
index 877756659..37970923c 100644
--- a/pimd/pim_nht.c
+++ b/pimd/pim_nht.c
@@ -292,7 +292,7 @@ static int pim_update_upstream_nh_helper(struct hash_backet *backet, void *arg)
old.source_nexthop.interface = up->rpf.source_nexthop.interface;
rpf_result = pim_rpf_update(pim, up, &old, 0);
if (rpf_result == PIM_RPF_FAILURE) {
- pim_mroute_del(up->channel_oil, __PRETTY_FUNCTION__);
+ pim_upstream_rpf_clear(pim, up);
return HASHWALK_CONTINUE;
}