]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: During NHT change evaluation, skip inappropriate paths
authorvivek <vivek@cumulusnetworks.com>
Mon, 25 May 2020 21:17:12 +0000 (14:17 -0700)
committervivek <vivek@cumulusnetworks.com>
Mon, 25 May 2020 21:17:12 +0000 (14:17 -0700)
commit0139efe0848346c8f8f4281f24f065cdce882504
treee4da0f0b57f462271c048d50ef97a1a6752b26b9
parent34ea39b65a2d6dd48df15d9d8a929c1a6f128122
bgpd: During NHT change evaluation, skip inappropriate paths

When there is a NHT change and the paths dependent on that NHT are being
evaluated, skip those that are marked for removal or as history.

When a route gets withdrawn, its valid flag is cleared and it is flagged
for removal; in the case of an EVPN route, it is also unimported from
VRFs (L2 and/or L3). bgp_process is then scheduled. Under rare timing
conditions, an NHT update for the route's next hop may arrive right after,
and if routes flagged for removal are not skipped, they may not only be
incorrectly marked as valid but also re-imported in the case of EVPN,
which will be a serious error.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
bgpd/bgp_nht.c