From a3aaf5b0ceb8c5b3821793333b4057df872fbedd Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Thu, 4 Oct 2007 10:49:21 +0000 Subject: + rib_process() speedup for multi-nexthop route nodes --- zebra/zebra_rib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'zebra/zebra_rib.c') diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 67dc810a..37b84a66 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -1118,9 +1118,10 @@ rib_process (struct work_queue *wq, void *data) */ for (nexthop = select->nexthop; nexthop; nexthop = nexthop->next) + if (CHECK_FLAG (nexthop->flags, NEXTHOP_FLAG_FIB)) { - if (CHECK_FLAG (nexthop->flags, NEXTHOP_FLAG_FIB)) - installed = 1; + installed = 1; + break; } if (! installed) rib_install_kernel (rn, select); -- cgit v1.2.1