]> 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)
committerChirag Shah <chirag@nvidia.com>
Wed, 19 Jun 2024 02:41:38 +0000 (19:41 -0700)
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 8fab0d1c055df6ea00d62c578af64d6e545cf4cb..c79d7dff16c166f237c5d93a954a2d69c2b75843 100644 (file)
@@ -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)