]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: backpressure - fix evpn route sync to zebra
authorChirag Shah <chirag@nvidia.com>
Mon, 17 Jun 2024 20:58:03 +0000 (13:58 -0700)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 25 Jul 2024 18:17:02 +0000 (21:17 +0300)
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 <rajasekarr@nvidia.com>
Signed-off-by: Chirag Shah <chirag@nvidia.com>
bgpd/bgp_zebra.c

index c4a55348eaf77c6a0753c6b127fbf13726d86c82..5bb177b2f79570d4a725357d0097afb672a62024 100644 (file)
@@ -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)