]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Update parent entry's refcount for imported routes
authorvivek <vivek@cumulusnetworks.com>
Wed, 9 May 2018 05:16:04 +0000 (22:16 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 11 May 2018 12:02:05 +0000 (08:02 -0400)
commit528cd74fd326517b2c9d941c9e9803c6c8d17515
treeca35bf426330a46c68b570e7762fc83ac5e44be6
parent3dc755e492093c42d0983620da810893c413c533
bgpd: Update parent entry's refcount for imported routes

Imported routes in a VRF routing table have a reference to their parent
route entry which resides in the EVPN or IPVPN routing table. Ensure that
this reference uses appropriate locking so that the parent entry doesn't
get freed prematurely.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
(cherry picked from commit 13cb6b22ba9d558b1b4a1e8752f63f13242462a7)

Conflicts:
bgpd/bgp_mplsvpn.c

Ticket: CM-20471
Testing Done:
a) Ran vrf_route_leak tests without fix and hit crash, ran twice with fix
and did not see the crash.
b) Ran evpn-smoke and ensured there were no new failures.
bgpd/bgp_evpn.c
bgpd/bgp_mplsvpn.c
bgpd/bgp_route.c