Skip to content

Commit

Permalink
Merge pull request FRRouting#16758 from donaldsharp/recalculate_less_…
Browse files Browse the repository at this point in the history
…often

bgpd: Reduce # of iterations when doing llgr
  • Loading branch information
ton31337 authored Sep 6, 2024
2 parents 8d3d764 + bb78f73 commit 5b1c87e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions bgpd/bgp_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,8 @@ static void bgp_set_llgr_stale(struct peer *peer, afi_t afi, safi_t safi)
attr = *pi->attr;
bgp_attr_add_llgr_community(&attr);
pi->attr = bgp_attr_intern(&attr);
bgp_recalculate_afi_safi_bestpaths(
peer->bgp, afi, safi);

bgp_process(peer->bgp, rm, pi, afi,
safi);
break;
}
}
Expand All @@ -724,9 +723,7 @@ static void bgp_set_llgr_stale(struct peer *peer, afi_t afi, safi_t safi)
attr = *pi->attr;
bgp_attr_add_llgr_community(&attr);
pi->attr = bgp_attr_intern(&attr);
bgp_recalculate_afi_safi_bestpaths(peer->bgp,
afi, safi);

bgp_process(peer->bgp, dest, pi, afi, safi);
break;
}
}
Expand Down

0 comments on commit 5b1c87e

Please sign in to comment.