From: Chirag Shah Date: Mon, 17 Jun 2024 20:58:03 +0000 (-0700) Subject: bgpd: backpressure - fix evpn route sync to zebra X-Git-Tag: docker/10.1.0~4^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F16479%2Fhead;p=mirror%2Ffrr.git bgpd: backpressure - fix evpn route sync to zebra 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 Signed-off-by: Chirag Shah --- diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index c4a55348ea..5bb177b2f7 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -1792,6 +1792,8 @@ static void bgp_handle_route_announcements_to_zebra(struct event *e) const struct prefix_evpn *evp = NULL; while (count < ZEBRA_ANNOUNCEMENTS_LIMIT) { + is_evpn = false; + dest = zebra_announce_pop(&bm->zebra_announce_head); if (!dest)