zebra: NHE use nexthop_group_equal_no_recurse()

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>
This commit is contained in:
Stephen Worley 2019-08-07 14:06:22 -04:00
parent 2171b19c5a
commit 2001be6cc0

View 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;