]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_nhg.c
zebra: Check active count first in nhg_hash_equal
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 6 Aug 2019 17:16:07 +0000 (13:16 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:42 +0000 (11:13 -0400)
commite4ac313b1280e15c13d12ff3dd25c7c09382920a
tree6c5510889ef95b5ecd4c0dc1a8a8b28fea17e284
parent6384cbcb0eaed417b95e9bce9f666d4f8ef4d7ca
zebra: Check active count first in nhg_hash_equal

Before checking the equivalence of the whole group itself,
check to see if they contain the same number of non-recursive
active nexthops. This should shorten lookup time for the case of
non-resolved nexthop group creation.

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