commit | a3aaf5b0ceb8c5b3821793333b4057df872fbedd | [log] [tgz] |
---|---|---|
author | Denis Ovsienko <linux@pilot.org.ua> | Thu Oct 04 10:49:21 2007 +0000 |
committer | Denis Ovsienko <linux@pilot.org.ua> | Thu Oct 04 10:49:21 2007 +0000 |
tree | c4c95460aff0f7332f84546e9dd0d651abc8868a | |
parent | f304cb48f0d7d0ff8f36e7aca8293141a9fa9e60 [diff] [blame] |
+ rib_process() speedup for multi-nexthop route nodes
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 67dc810..37b84a6 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c
@@ -1118,9 +1118,10 @@ */ 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);