mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 21:47:15 +02:00
bgpd: Remove unused bgp_mp_dmed_deselect function
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
3fa917044e
commit
49944f77fe
|
@ -569,24 +569,6 @@ void bgp_path_info_mpath_update(struct bgp *bgp, struct bgp_dest *dest,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* bgp_mp_dmed_deselect
|
|
||||||
*
|
|
||||||
* Clean up multipath information for BGP_PATH_DMED_SELECTED path that
|
|
||||||
* is not selected as best path
|
|
||||||
*/
|
|
||||||
void bgp_mp_dmed_deselect(struct bgp_path_info *dmed_best)
|
|
||||||
{
|
|
||||||
if (!dmed_best)
|
|
||||||
return;
|
|
||||||
|
|
||||||
bgp_path_info_mpath_count_set(dmed_best, 0);
|
|
||||||
UNSET_FLAG(dmed_best->flags, BGP_PATH_MULTIPATH_CHG);
|
|
||||||
UNSET_FLAG(dmed_best->flags, BGP_PATH_LINK_BW_CHG);
|
|
||||||
|
|
||||||
assert(bgp_path_info_mpath_first(dmed_best) == NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* bgp_path_info_mpath_aggregate_update
|
* bgp_path_info_mpath_aggregate_update
|
||||||
*
|
*
|
||||||
|
|
|
@ -46,7 +46,6 @@ extern int bgp_maximum_paths_unset(struct bgp *bgp, afi_t afi, safi_t safi,
|
||||||
* multipath selections
|
* multipath selections
|
||||||
*/
|
*/
|
||||||
extern int bgp_path_info_nexthop_cmp(struct bgp_path_info *bpi1, struct bgp_path_info *bpi2);
|
extern int bgp_path_info_nexthop_cmp(struct bgp_path_info *bpi1, struct bgp_path_info *bpi2);
|
||||||
extern void bgp_mp_dmed_deselect(struct bgp_path_info *dmed_best);
|
|
||||||
extern void bgp_path_info_mpath_update(struct bgp *bgp, struct bgp_dest *dest,
|
extern void bgp_path_info_mpath_update(struct bgp *bgp, struct bgp_dest *dest,
|
||||||
struct bgp_path_info *new_best,
|
struct bgp_path_info *new_best,
|
||||||
struct bgp_path_info *old_best, uint32_t num_candidates,
|
struct bgp_path_info *old_best, uint32_t num_candidates,
|
||||||
|
|
Loading…
Reference in a new issue