vppinfra: fix issue with bihash_8_8 hash function (VPP-518) 27/3627/2
authorDamjan Marion <damarion@cisco.com>
Fri, 28 Oct 2016 20:17:38 +0000 (22:17 +0200)
committerDamjan Marion <damarion@cisco.com>
Fri, 28 Oct 2016 20:22:57 +0000 (22:22 +0200)
Change-Id: Ia9a484575d0142e89ec5b6b4c6c2e702e1098a1e
Signed-off-by: Damjan Marion <damarion@cisco.com>
vppinfra/vppinfra/bihash_8_8.h

index 4087d4d..a0d6df2 100644 (file)
@@ -54,7 +54,7 @@ static inline u64
 clib_bihash_hash_8_8 (clib_bihash_kv_8_8_t * v)
 {
 #if __SSE4_2__
-  return _mm_crc32_u64 (v->key, 0);
+  return _mm_crc32_u64 (0, v->key);
 #else
   return clib_xxhash (v->key);
 #endif