summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-03-18 01:54:04 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-03-18 01:54:04 +0100
commit78c16071f99bf3a5df1800a26656c3362eb0ba48 (patch)
treed072b273b6e02dcb3f8722adfcdf1cc29e920b8f
parentMerge pull request #1914 from donaldsharp/fix_it (diff)
downloadfrr-78c16071f99bf3a5df1800a26656c3362eb0ba48.tar.xz
frr-78c16071f99bf3a5df1800a26656c3362eb0ba48.zip
pimd: Just call the actual function
We do not really need a level of abstraction to call a particular function. Just call it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--pimd/pim_neighbor.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/pimd/pim_neighbor.c b/pimd/pim_neighbor.c
index dd77e2b08..134dbd871 100644
--- a/pimd/pim_neighbor.c
+++ b/pimd/pim_neighbor.c
@@ -477,17 +477,6 @@ struct pim_neighbor *pim_neighbor_find_if(struct interface *ifp)
return listnode_head(pim_ifp->pim_neighbor_list);
}
-/* rpf info associated with an upstream entry needs to be re-evaluated
- * when an RPF neighbor comes or goes */
-static void pim_neighbor_rpf_update(void)
-{
- /* XXX: for the time being piggyback on the timer used on rib changes
- * to scan and update the rpf nexthop. This is expensive processing
- * and we should be able to optimize neighbor changes differently than
- * nexthop changes. */
- sched_rpf_cache_refresh();
-}
-
struct pim_neighbor *
pim_neighbor_add(struct interface *ifp, struct in_addr source_addr,
pim_hello_options hello_options, uint16_t holdtime,
@@ -556,7 +545,7 @@ pim_neighbor_add(struct interface *ifp, struct in_addr source_addr,
pim_rp_setup(pim_ifp->pim);
- pim_neighbor_rpf_update();
+ sched_rpf_cache_refresh();
return neigh;
}
@@ -678,7 +667,7 @@ void pim_neighbor_delete(struct interface *ifp, struct pim_neighbor *neigh,
pim_neighbor_free(neigh);
- pim_neighbor_rpf_update();
+ sched_rpf_cache_refresh();
}
void pim_neighbor_delete_all(struct interface *ifp, const char *delete_message)