Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bgpd: handling flapped updates considered as duplicates in route proc…
…essing When many routes are involved, clearing a neighbor and reconnecting causes some updates to arrive too quickly before bgpd finishes processing the route flush. I observed that updates are scheduled for withdrawal, but by the time bgpd re-establishes the connection and finishes receiving updates, it starts processing them. Some updates are considered duplicates because they use the same bgp_dest instance (which is destroyed once the withdrawal is processed), leading to route losses. The fix is to check if a withdrawal advertisement is already scheduled when a duplicate update occurs. If so, the withdraw message is dropped. Signed-off-by: Loïc Sang <loic.sang@6wind.com>
- Loading branch information