]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: Just call the actual function
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 18 Mar 2018 00:54:04 +0000 (20:54 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 18 Mar 2018 00:54:04 +0000 (20:54 -0400)
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>
pimd/pim_neighbor.c

index dd77e2b084833d1e722dcdacb67c0179091ec753..134dbd8712d49bfee6365fe281cac8e220cfb3f4 100644 (file)
@@ -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)