Skip to content

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Jul 28, 2025

Currently when configuring bgp to send up to 6 additional routes after the selected, there exists a timing window where it can decide to send a withdrawal for the selected. Thus leaving a non-selected on the sent to router. The code loops over the paths in the start of the function, skipping the best path and finding up to X additional paths to send. When this is done, it looks at the list generated compared to all the paths and sends withdrawals for all those no-longer possibly selected. Since bestpath sending is elsewhere we end up with a situation where it's possible to send a withdrawal for the selected. Modify the code in the second loop to no longer send a withdrawal in this case for the selected.


This is an automatic backport of pull request #19210 done by Mergify.

Currently when configuring bgp to send up to 6 additional routes after
the selected, there exists a timing window where it can decide to
send a withdrawal for the selected.  Thus leaving a non-selected
on the sent to router.  The code loops over the paths in the start
of the function, skipping the best path and finding up to X additional
paths to send.  When this is done, it looks at the list generated
compared to all the paths and sends withdrawals for all those no-longer
possibly selected.  Since bestpath sending is elsewhere we end up
with a situation where it's possible to send a withdrawal for the
selected.  Modify the code in the second loop to no longer send
a withdrawal in this case for the selected.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit c9084f0)
@frrbot frrbot bot added the bgp label Jul 28, 2025
@donaldsharp donaldsharp merged commit a7412dc into stable/10.4 Jul 28, 2025
17 checks passed
@Jafaral Jafaral deleted the mergify/bp/stable/10.4/pr-19210 branch July 31, 2025 15:02
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.

1 participant