]> git.puffer.fish Git - mirror/frr.git/commit
bgpd : backpressure - Fix to pop items off zebra_announce FIFO for few EVPN triggers 17432/head
authorRajasekar Raja <rajasekarr@nvidia.com>
Thu, 14 Nov 2024 07:09:55 +0000 (23:09 -0800)
committerRajasekar Raja <rajasekarr@nvidia.com>
Fri, 15 Nov 2024 08:32:42 +0000 (00:32 -0800)
commit898852f2699887bc92e96267cb3fcf221a3df01e
tree888f5927fb3f31a5c66eaeb222a644e9c9902ecd
parent960462aadedbc921a80c20c231cfcf6e94b5a98b
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>
bgpd/bgp_evpn.c
bgpd/bgp_evpn.h