]> git.puffer.fish Git - mirror/frr.git/commit
bgp_recalculate_all_bestpaths() should check if rn->info is NULL
authorDaniel Walton <dwalton@cumulusnetworks.com>
Fri, 17 Jun 2016 13:44:35 +0000 (13:44 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Fri, 17 Jun 2016 13:44:35 +0000 (13:44 +0000)
commit353cd37f7d22edf27664d9d56b02dd65c5daa362
tree55f5a811b8206aeb49da3f043d4a4c1570656261
parent017454fe079b02dcd1969d3696e18453dcf2ae42
bgp_recalculate_all_bestpaths() should check if rn->info is NULL

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-11444

The bgp table may contain nodes without an 'info' (these nodes are used
for balancing the tree, they are created by route_common() in lib/table.c).
When we call bgp_recalculate_all_bestpaths() we should avoid calling
bgp_process() for these nodes.  bgp_recalculate_all_bestpaths() is only
called when knobs are configured that could have an impact on which
routes are selected as best.
bgpd/bgpd.c