Skip to content

Commit

Permalink
bgpd: backpressure - fix evpn route sync to zebra
Browse files Browse the repository at this point in the history
In scaled EVPN + ipv4/ipv6 uni route sync to zebra,
some of the ipv4/ipv6 routes skipped reinstallation
due to incorrect local variable's stale value.

Once the local variable value reset in each loop
iteration all skipped routes synced to zebra properly.

Ticket: #3948828

Signed-off-by: Rajasekar Raja <[email protected]>
Signed-off-by: Chirag Shah <[email protected]>
  • Loading branch information
chiragshah6 committed Jun 19, 2024
1 parent a1b21f5 commit b47a92e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bgpd/bgp_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,8 @@ static void bgp_handle_route_announcements_to_zebra(struct event *e)
bool install;

while (count < ZEBRA_ANNOUNCEMENTS_LIMIT) {
is_evpn = false;

dest = zebra_announce_pop(&bm->zebra_announce_head);

if (!dest)
Expand Down

0 comments on commit b47a92e

Please sign in to comment.