]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Trust the bgp_table_top_nolock for aggregates
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 1 Jun 2018 18:19:12 +0000 (14:19 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 5 Jun 2018 16:55:13 +0000 (12:55 -0400)
commitb89a6450ba6f46d39b5b267e4f23cd45fb1eba46
treea2bdd47663463abb363b4f966d6638543dd7c795
parent09990cddffba0183965879de56564bca97e9a3d7
bgpd: Trust the bgp_table_top_nolock for aggregates

The safi passed in to short-circuit the aggregate lookup
adds code complexity and little speed improvements for
the case where we actually may have aggregates configured!
Since bgp_table_top_nolock() actually tells us if there
are any aggregates installed and safely returns if there
is nothing to do, trust it.  As that we know for those
safi's were we don't want to have, we dissallow the
creation via the cli anyways.

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