Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Handle execessive hash collisions, VPP-555
[vpp.git]
/
src
/
vppinfra
/
bihash_8_8.h
diff --git
a/src/vppinfra/bihash_8_8.h
b/src/vppinfra/bihash_8_8.h
index
a0d6df2
..
d70da59
100644
(file)
--- 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