]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_evpn.c
bgpd: Properly lock parent node for type4 routes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 15 Oct 2019 00:44:56 +0000 (20:44 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 15 Oct 2019 01:17:04 +0000 (21:17 -0400)
commitf4d7cb0e9b365347015455d42ea69b115303da76
tree0836c2fbeb5e4792728aa28ee84d66de30a07117
parent890b7a3c7760b0465ade73eb493a9079d933c38d
bgpd: Properly lock parent node for type4 routes

When creating a bgp_path_info for a type 4 route the pi->extra->parent
and the route node for the originating table were not being locked
properly.  This will prevent BGP from not properly cleaning up
the data structures on cleanup.

Possibly every one of the functions that we use to create the
new bgp_path_info's should use an abstracted version of this code,
but I am unsure at this point in time if a type 4 should use the same
or not.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_evpn.c