From: Florin Coras Date: Fri, 8 Sep 2017 20:22:38 +0000 (-0400) Subject: arp/glean: fix hash computation X-Git-Tag: v17.10-rc1~96 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=2d3dbc45d633c5c2cb1bc4e1f544491e3173f001;p=vpp.git arp/glean: fix hash computation Change-Id: Ifef8a9328bb865f6ddb041bafe3699153f89755a Signed-off-by: Florin Coras --- diff --git a/src/vnet/ip/ip4_forward.c b/src/vnet/ip/ip4_forward.c index ec4287bb008..b3de1201abc 100755 --- a/src/vnet/ip/ip4_forward.c +++ b/src/vnet/ip/ip4_forward.c @@ -2032,11 +2032,12 @@ ip4_arp_inline (vlib_main_t * vm, } b0 ^= sw_if_index0; + hash_v3_mix32 (a0, b0, c0); hash_v3_finalize32 (a0, b0, c0); c0 &= BITS (hash_bitmap) - 1; - c0 = c0 / BITS (uword); m0 = (uword) 1 << (c0 % BITS (uword)); + c0 = c0 / BITS (uword); bm0 = hash_bitmap[c0]; drop0 = (bm0 & m0) != 0;