From 78c16071f99bf3a5df1800a26656c3362eb0ba48 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 17 Mar 2018 20:54:04 -0400 Subject: [PATCH] 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 --- pimd/pim_neighbor.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/pimd/pim_neighbor.c b/pimd/pim_neighbor.c index dd77e2b084..134dbd8712 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) -- 2.39.5