Skip to content

Commit

Permalink
bgpd: Drop periodic merge check functions
Browse files Browse the repository at this point in the history
Not used anymore. There is triggered merge check, not periodic.

Signed-off-by: Donatas Abraitis <[email protected]>
  • Loading branch information
ton31337 committed Mar 20, 2024
1 parent 617d82e commit 5516567
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
20 changes: 0 additions & 20 deletions bgpd/bgp_updgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
********************/
Expand Down Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion bgpd/bgp_updgrp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5516567

Please sign in to comment.