Skip to content

Commit cc7951d

Browse files
authored
Merge pull request FRRouting#16978 from donaldsharp/dmed_deselect_not_used
bgpd: Remove unused bgp_mp_dmed_deselect function
2 parents 56d6a1a + 49944f7 commit cc7951d

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

bgpd/bgp_mpath.c

-18
Original file line numberDiff line numberDiff line change
@@ -569,24 +569,6 @@ void bgp_path_info_mpath_update(struct bgp *bgp, struct bgp_dest *dest,
569569
}
570570
}
571571

572-
/*
573-
* bgp_mp_dmed_deselect
574-
*
575-
* Clean up multipath information for BGP_PATH_DMED_SELECTED path that
576-
* is not selected as best path
577-
*/
578-
void bgp_mp_dmed_deselect(struct bgp_path_info *dmed_best)
579-
{
580-
if (!dmed_best)
581-
return;
582-
583-
bgp_path_info_mpath_count_set(dmed_best, 0);
584-
UNSET_FLAG(dmed_best->flags, BGP_PATH_MULTIPATH_CHG);
585-
UNSET_FLAG(dmed_best->flags, BGP_PATH_LINK_BW_CHG);
586-
587-
assert(bgp_path_info_mpath_first(dmed_best) == NULL);
588-
}
589-
590572
/*
591573
* bgp_path_info_mpath_aggregate_update
592574
*

bgpd/bgp_mpath.h

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ extern int bgp_maximum_paths_unset(struct bgp *bgp, afi_t afi, safi_t safi,
4646
* multipath selections
4747
*/
4848
extern int bgp_path_info_nexthop_cmp(struct bgp_path_info *bpi1, struct bgp_path_info *bpi2);
49-
extern void bgp_mp_dmed_deselect(struct bgp_path_info *dmed_best);
5049
extern void bgp_path_info_mpath_update(struct bgp *bgp, struct bgp_dest *dest,
5150
struct bgp_path_info *new_best,
5251
struct bgp_path_info *old_best, uint32_t num_candidates,

0 commit comments

Comments
 (0)