summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2025-02-25 10:40:48 -0500
committerGitHub <noreply@github.com>2025-02-25 10:40:48 -0500
commit45a67326ac7b942bd676be5768080a416941b065 (patch)
tree3933c53f81d003e70117493a0f88d9dbdfb9bae5
parentabae4012a77985fcef58e0b6b9fdeb5035eafc7f (diff)
parentd9712eb382f6738f9d03791c4be66f9d4201cce3 (diff)
Merge pull request #18227 from FRRouting/mergify/bp/dev/10.3/pr-18210
bgpd: remove dmed check not required in bestpath selection (backport #18210)
-rw-r--r--bgpd/bgp_route.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 1b30487bc3..39172cc082 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -3195,21 +3195,6 @@ void bgp_best_selection(struct bgp *bgp, struct bgp_dest *dest,
bgp_path_info_unset_flag(dest, look_thru,
BGP_PATH_DMED_CHECK);
- if (CHECK_FLAG(bgp->flags, BGP_FLAG_DETERMINISTIC_MED) &&
- (!CHECK_FLAG(look_thru->flags,
- BGP_PATH_DMED_SELECTED))) {
- bgp_path_info_unset_flag(dest, look_thru,
- BGP_PATH_DMED_CHECK);
- if (debug)
- zlog_debug("%s: %pBD(%s) pi %s dmed",
- __func__, dest,
- bgp->name_pretty,
- look_thru->peer->host);
-
- worse = look_thru;
- continue;
- }
-
reason = dest->reason;
any_comparisons = true;
if (bgp_path_info_cmp(bgp, first, look_thru, &paths_eq,