]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd : backpressure - Fix to pop items off zebra_announce FIFO for few EVPN triggers
authorRajasekar Raja <rajasekarr@nvidia.com>
Thu, 14 Nov 2024 07:09:55 +0000 (23:09 -0800)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Sat, 16 Nov 2024 10:53:01 +0000 (10:53 +0000)
commita7aae788ec09ca99994d05546f361fe05a363053
treee406020d6eb4837a518dea6f6cafd5629e523e10
parent22746b8d59e6e6cb77ced61bc9e0cff2ead227b5
bgpd : backpressure - Fix to pop items off zebra_announce FIFO for few EVPN triggers

In cases such as 'no advertise-all-vni' and L2 VNI DELETE, we need to
pop all the VPN routes present in the bgp_zebra_announce FIFO yet to
be processed regardless of VNI is configured or not.

NOTE: NO need to pop the VPN routes in two cases
 1) In free_vni_entry
   - Called by bgp_free()->bgp_evpn_cleanup().
   - Since bgp_delete is called before bgp_free and we pop all the dest
     pertaining to bgp under delete.
 2) evpn_delete_vni() when user configures "no vni" since the withdraw
    of all routes happen in normal cycle.

Fixes: a07df6f7548f6bd1b92acbb7a10c3823de33fe5f
("bgpd : backpressure - Handle BGP-Zebra(EPVN) Install evt Creation")

Ticket :#4163611

Signed-off-by: Rajasekar Raja <rajasekarr@nvidia.com>
(cherry picked from commit 898852f2699887bc92e96267cb3fcf221a3df01e)
bgpd/bgp_evpn.c
bgpd/bgp_evpn.h