From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>
Subject: [PATCH v4 0/4] Cuckoo hash optimization for small sizes
Date: Tue, 16 Sep 2025 08:00:43 -0700 [thread overview]
Message-ID: <20250916150219.104936-1-stephen@networkplumber.org> (raw)
In-Reply-To: <0250818233102.180207-1-stephen@networkplumber.org>
Recent discussion around handling small keys motivated furthur
examination of the compare logic.
v4 - add test for more sizes, and a few more special case sizes.
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
app/test/test_hash.c | 7 +-
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 | 256 +++++++++++++++++++++++++++++++++++--
lib/hash/rte_cuckoo_hash.h | 84 +-----------
6 files changed, 295 insertions(+), 203 deletions(-)
create mode 100644 lib/hash/rte_cmp_generic.h
--
2.47.3
next parent reply other threads:[~2025-09-16 15:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <0250818233102.180207-1-stephen@networkplumber.org>
2025-09-16 15:00 ` Stephen Hemminger [this message]
2025-09-16 15:00 ` [PATCH v4 1/4] hash: move table of hash compare functions out of header Stephen Hemminger
2025-09-16 15:00 ` [PATCH v4 2/4] hash: use static_assert Stephen Hemminger
2025-09-16 15:00 ` [PATCH v4 3/4] hash: reduce architecture special cases Stephen Hemminger
2025-09-16 15:00 ` [PATCH v4 4/4] hash: add support for common small key sizes Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250916150219.104936-1-stephen@networkplumber.org \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).