[PATCH v3 0/4] Cuckoo hash cleanup and optimizations

Stephen Hemminger
2025-08-26T14:49:30Z

Recent discussion around handling small keys motivated furthur
examination of the compare logic.

Stephen Hemminger (4):
hash: move table of hash compare functions out of header
hash: use static_assert
hash: reduce architecture special cases
hash: add support for common small key sizes

v3 - review feedback

app/test/test_hash.c | 4 +-
lib/hash/rte_cmp_arm64.h | 56 +--------
lib/hash/rte_cmp_generic.h | 35 ++++++
lib/hash/rte_cmp_x86.h | 60 +---------
lib/hash/rte_cuckoo_hash.c | 238 +++++++++++++++++++++++++++++++++++--
lib/hash/rte_cuckoo_hash.h | 84 +------------
6 files changed, 275 insertions(+), 202 deletions(-)
create mode 100644 lib/hash/rte_cmp_generic.h

--
2.47.2