]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: do not unregister for prefix nexthop updates if nh exists
authorPat Ruddy <pat@voltanet.io>
Fri, 26 Jun 2020 16:37:30 +0000 (17:37 +0100)
committerGalaxyGorilla <sascha@netdef.org>
Mon, 31 Aug 2020 09:11:47 +0000 (09:11 +0000)
commite37e1e27e4f26d370946bedb9ae0767344fe339d
tree03c946f34c5be3576996e7b2ab8dbf4eb5691b41
parent545aeef1d13ec29c14713450deea24d6f8810af2
bgpd: do not unregister for prefix nexthop updates if nh exists

since the addition of srte_color to the comparison for bgp nexthops
it is possible to have several nexthops per prefix but since zebra
only sores a per prefix registration we should not unregister for
nh notifications for a prefix unti all the nexthops for that prefix
have been deleted. Otherwise we can get into a deadlock situation
where BGP thinks we have registered but we have unregistered from zebra.

Signed-off-by: Pat Ruddy <pat@voltanet.io>
bgpd/bgp_nexthop.c
bgpd/bgp_nexthop.h
bgpd/bgp_nht.c