aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/cuckoo_template.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/cuckoo_template.h')
-rw-r--r--src/vppinfra/cuckoo_template.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/vppinfra/cuckoo_template.h b/src/vppinfra/cuckoo_template.h
index d48079a9e6c..364c2919d96 100644
--- a/src/vppinfra/cuckoo_template.h
+++ b/src/vppinfra/cuckoo_template.h
@@ -383,11 +383,7 @@ always_inline int CV (clib_cuckoo_bucket_search) (CVT (clib_cuckoo_bucket) *
break;
}
#endif
- if (
-#if CLIB_CUCKOO_OPTIMIZE_CMP_REDUCED_HASH
- reduced_hash == b->reduced_hashes[i] &&
-#endif
- 0 == memcmp (&kvp->key, &b->elts[i].key, sizeof (kvp->key)))
+ if (CV (clib_cuckoo_key_compare) (kvp->key, b->elts[i].key))
{
kvp->value = b->elts[i].value;
clib_cuckoo_bucket_aux_t bucket_aux2 = b->aux;