]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Drop periodic merge check functions 15584/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 20 Mar 2024 14:44:13 +0000 (16:44 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 20 Mar 2024 14:44:13 +0000 (16:44 +0200)
Not used anymore. There is triggered merge check, not periodic.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_updgrp.c
bgpd/bgp_updgrp.h

index f36a7b6d0b6eb951256eeae5a57403bd338f5064..124e7a388b82cb950d827021d9b6e82fcd72ed82 100644 (file)
@@ -1732,18 +1732,6 @@ static int update_group_walkcb(struct hash_bucket *bucket, void *arg)
        return ret;
 }
 
-static int update_group_periodic_merge_walkcb(struct update_group *updgrp,
-                                             void *arg)
-{
-       struct update_subgroup *subgrp;
-       struct update_subgroup *tmp_subgrp;
-       const char *reason = arg;
-
-       UPDGRP_FOREACH_SUBGRP_SAFE (updgrp, subgrp, tmp_subgrp)
-               update_subgroup_check_merge(subgrp, reason);
-       return UPDWALK_CONTINUE;
-}
-
 /********************
  * PUBLIC FUNCTIONS
  ********************/
@@ -2082,14 +2070,6 @@ void update_group_walk(struct bgp *bgp, updgrp_walkcb cb, void *ctx)
        }
 }
 
-void update_group_periodic_merge(struct bgp *bgp)
-{
-       char reason[] = "periodic merge check";
-
-       update_group_walk(bgp, update_group_periodic_merge_walkcb,
-                         (void *)reason);
-}
-
 static int
 update_group_default_originate_route_map_walkcb(struct update_group *updgrp,
                                                void *arg)
index 5e8b5374d6513c099d3d4a9b27ce19db88048c88..d0fd226d9988b24a282263c3add2ba29c05cb406 100644 (file)
@@ -369,7 +369,6 @@ extern void update_group_policy_update(struct bgp *bgp,
 extern void update_group_af_walk(struct bgp *bgp, afi_t afi, safi_t safi,
                                 updgrp_walkcb cb, void *ctx);
 extern void update_group_walk(struct bgp *bgp, updgrp_walkcb cb, void *ctx);
-extern void update_group_periodic_merge(struct bgp *bgp);
 extern void
 update_group_refresh_default_originate_route_map(struct event *thread);
 extern void update_group_start_advtimer(struct bgp *bgp);