summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-10-02 10:41:37 -0400
committerDonald Sharp <sharpd@nvidia.com>2024-10-02 10:55:32 -0400
commit49944f77fe08c81c1770bbf21005a3d6c83b688c (patch)
treebb658d4b3a3618dcc678aef9e52cc9b9e8559177
parent3fa917044e1df7c7a4df0705c27df93c4ae1c44b (diff)
bgpd: Remove unused bgp_mp_dmed_deselect function
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r--bgpd/bgp_mpath.c18
-rw-r--r--bgpd/bgp_mpath.h1
2 files changed, 0 insertions, 19 deletions
diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c
index e0cc5f189a..84db7e88ce 100644
--- a/bgpd/bgp_mpath.c
+++ b/bgpd/bgp_mpath.c
@@ -570,24 +570,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
*
* Set the multipath aggregate attribute. We need to see if the
diff --git a/bgpd/bgp_mpath.h b/bgpd/bgp_mpath.h
index 8201896593..c5a009a4c8 100644
--- a/bgpd/bgp_mpath.h
+++ b/bgpd/bgp_mpath.h
@@ -46,7 +46,6 @@ extern int bgp_maximum_paths_unset(struct bgp *bgp, afi_t afi, safi_t safi,
* multipath selections
*/
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,
struct bgp_path_info *new_best,
struct bgp_path_info *old_best, uint32_t num_candidates,