
jorge at dti2
May 7, 2012, 10:53 AM
Post #1 of 1
(91 views)
Permalink
|
|
[PATCH 18/25] bgpd: optimize bgp_update_main() in the soft_reconfig case
|
|
From: "Jorge Boncompte [DTI2]" <jorge [at] dti2> Avoids 3 checks per call. Signed-off-by: Jorge Boncompte [DTI2] <jorge [at] dti2> --- bgpd/bgp_route.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 726cece..94f6be4 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -2067,8 +2067,8 @@ bgp_update_main (struct peer *peer, struct prefix *p, struct attr *attr, /* When peer's soft reconfiguration enabled. Record input packet in Adj-RIBs-In. */ - if (CHECK_FLAG (peer->af_flags[afi][safi], PEER_FLAG_SOFT_RECONFIG) - && peer != bgp->peer_self && ! soft_reconfig) + if (! soft_reconfig && CHECK_FLAG (peer->af_flags[afi][safi], PEER_FLAG_SOFT_RECONFIG) + && peer != bgp->peer_self) bgp_adj_in_set (rn, peer, attr); /* Check previously received route. */ -- 1.7.8.3 _______________________________________________ Quagga-dev mailing list Quagga-dev [at] lists http://lists.quagga.net/mailman/listinfo/quagga-dev
|