]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: NHE use nexthop_group_equal_no_recurse()
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 7 Aug 2019 18:06:22 +0000 (14:06 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:42 +0000 (11:13 -0400)
Update nhg_hash_entry to use the non-recursive version of
nexthop_group_equal() since it doesn't really need to compare all
of those.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_nhg.c

index 9e19c8d0e3655e532cb8a0e09821b4587309c818..8e7592c2b0b1c7305823adddd9a1f55868e99e6a 100644 (file)
@@ -395,7 +395,7 @@ bool zebra_nhg_hash_equal(const void *arg1, const void *arg2)
            != nexthop_group_active_nexthop_num_no_recurse(nhe2->nhg))
                return false;
 
-       if (!nexthop_group_equal(nhe1->nhg, nhe2->nhg))
+       if (!nexthop_group_equal_no_recurse(nhe1->nhg, nhe2->nhg))
                return false;
 
        return true;