]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix for BGP core when connected routes are redistributed
authorbisdhdh <biswajit.sadhu@gmail.com>
Wed, 23 Oct 2019 19:15:43 +0000 (00:45 +0530)
committerbisdhdh <biswajit.sadhu@gmail.com>
Thu, 23 Jan 2020 04:04:25 +0000 (09:34 +0530)
commit5f9c1aa29eab6052403fdf2df2c1d7c543da687c
tree60c637c9dba06abf742ee7776b525f47bcd9c76c
parent5cce3f05447f191a221a07960dbd68adf5265a80
bgpd: Fix for BGP core when connected routes are redistributed
& GR is enabled.

When GR with deferral is enabled and connected routes are
distributed then in one race condition route node gets added
in to both deferred queue and work queue. If deferred queue
gets processed first then it ends up delete only flag while
leaving the entry in the work queue as it is. When a new update
comes for the same route node next time from peer then it hits
assert. Assert check is added to ensure we don’t add to work queue
again while it is already present.
So, check before adding in to deferred queue if it is already present
in work queue and bail if so.

Signed-off-by: Biswajit Sadhu <sadhub@vmware.com>
bgpd/bgp_route.c