summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-02-08 11:56:40 -0500
committerDonald Sharp <sharpd@nvidia.com>2024-02-08 11:56:40 -0500
commit2934127547bc63a59f83fb4f875a6b2c8779d6ca (patch)
tree3b7461af7d024e079be0cd75bdf3f7e022b6c563 /zebra/interface.c
parentb9130ab51b58a87d1c1b0d4e0cab072df1357a4d (diff)
zebra: Remove ifp_nhg_XXX functions completely
These functions provided a level of abstraction that forced us to call multiple functions when a simple data structure change was all that is needed. Let's consolidate down and make things a bit simpler. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 829f9dab61..efa7283e31 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -954,35 +954,6 @@ static void if_down_del_nbr_connected(struct interface *ifp)
}
}
-void if_nhg_dependents_add(struct interface *ifp, struct nhg_hash_entry *nhe)
-{
- if (ifp->info) {
- struct zebra_if *zif = (struct zebra_if *)ifp->info;
-
- nhg_connected_tree_add_nhe(&zif->nhg_dependents, nhe);
- }
-}
-
-void if_nhg_dependents_del(struct interface *ifp, struct nhg_hash_entry *nhe)
-{
- if (ifp->info) {
- struct zebra_if *zif = (struct zebra_if *)ifp->info;
-
- nhg_connected_tree_del_nhe(&zif->nhg_dependents, nhe);
- }
-}
-
-unsigned int if_nhg_dependents_count(const struct interface *ifp)
-{
- if (ifp->info) {
- struct zebra_if *zif = (struct zebra_if *)ifp->info;
-
- return nhg_connected_tree_count(&zif->nhg_dependents);
- }
-
- return 0;
-}
-
/* Interface is up. */
void if_up(struct interface *ifp, bool install_connected)
{