From 62991a11679da8912815c763980a505d1ad37ed7 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Mon, 12 Aug 2019 11:09:46 -0400 Subject: [PATCH] zebra: NHE hash reduce calls to jhash Reduce the two calls to jhash to one jhash_3words() call to save some more hashing time. Signed-off-by: Stephen Worley --- zebra/zebra_nhg.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 8e7592c2b0..19119e62c9 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -362,9 +362,8 @@ uint32_t zebra_nhg_hash_key(const void *arg) uint32_t key = 0x5a351234; - key = jhash_2words(nhe->vrf_id, nhe->afi, key); - - key = jhash_1word(nexthop_group_hash(nhe->nhg), key); + key = jhash_3words(nhe->vrf_id, nhe->afi, nexthop_group_hash(nhe->nhg), + key); return key; }