Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgpd: Reduce # of iterations when doing llgr #16758

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

donaldsharp
Copy link
Member

Code was scanning a table then identifying a prefix that needed to be modified then calling code that
reran bestpath on the entire table again.

If you had multiple items that needed processing
you would end up scanning and setting the entire
table to be scanned multiple times. No bueno.

a) We do not need to reprocess items that are not
being modified.

b) We do not need to walk the entire table multiple times, we have the data that is needed already.

Modify the code to just call bgp_process on the
interesting nodes.

Code was scanning a table then identifying a prefix
that needed to be modified then calling code that
reran bestpath on the entire table again.

If you had multiple items that needed processing
you would end up scanning and setting the entire
table to be scanned multiple times.  No bueno.

a) We do not need to reprocess items that are not
being modified.

b) We do not need to walk the entire table multiple
times, we have the data that is needed already.

Modify the code to just call bgp_process on the
interesting nodes.

Signed-off-by: Donald Sharp <[email protected]>
@frrbot frrbot bot added the bgp label Sep 6, 2024
@ton31337 ton31337 merged commit 5b1c87e into FRRouting:master Sep 6, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants