aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/bihash_8_8.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-12-12 15:37:29 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2017-01-02 17:37:00 +0000
commit5e6b9580f202188cbe158368bdbe35c3f39973d7 (patch)
treef4584fc2f989f9cad62a5de9ec33d894033a59a8 /src/vppinfra/bihash_8_8.h
parent77fabdbcee0123fbdf77060a63515058c1529e66 (diff)
Handle execessive hash collisions, VPP-555
Change-Id: I55dad7b5cfb3d38c22b1105f7d2d61e7449410ea Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vppinfra/bihash_8_8.h')
-rw-r--r--src/vppinfra/bihash_8_8.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vppinfra/bihash_8_8.h b/src/vppinfra/bihash_8_8.h
index a0d6df2e4c8..d70da5966e2 100644
--- a/src/vppinfra/bihash_8_8.h
+++ b/src/vppinfra/bihash_8_8.h
@@ -53,6 +53,7 @@ clib_bihash_is_free_8_8 (clib_bihash_kv_8_8_t * v)
static inline u64
clib_bihash_hash_8_8 (clib_bihash_kv_8_8_t * v)
{
+ /* Note: to torture-test linear scan, make this fn return a constant */
#if __SSE4_2__
return _mm_crc32_u64 (0, v->key);
#else