Skip to content

optimized Toeplitz hash implementation

Vladimir Medvedkin dpdk-dev 8 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest4 patches 1 replyApplied
  2. v74 patches 0 repliesSuperseded
  3. v64 patches 0 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v55 patches9 repliesSuperseded
v45 patches0 repliesSuperseded
v35 patches3 repliesSuperseded
v25 patches5 repliesSuperseded
v15 patches9 repliesSuperseded

Changes in v8 from the cover letter

- rebased on the latest main
- fixed buffer overflow reported by ASAN

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/4hash: add new toeplitz hash implementationapp/test/test_thash.c doc/api/doxy-api-index.md doc/guides/prog_guide/toeplitz_hash_lib.rst +7 more+513 -50 replies
2/4hash: add bulk toeplitz hash implementationapp/test/test_thash.c doc/guides/prog_guide/toeplitz_hash_lib.rst lib/hash/rte_thash_gfni.h +1 more+154 -60 replies
3/4hash: enable gfni thash implementationlib/hash/rte_thash.c lib/hash/rte_thash.h lib/hash/version.map+58 -40 replies
4/4test/thash: add performance tests for the Toeplitz hashapp/test/meson.build app/test/test_thash_perf.c+137 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchKonstantin Ananyev
1/4A-b
2/4A-b
3/4A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [dpdk-dev] [PATCH v8 0/4] optimized Toeplitz hash implementation

This patch series adds a new optimized implementation for the Toeplitz hash function using Galois Fields New instruction (GFNI).
The main use case of this function is to calculate the hash value for a single data, so there is no bulk implementation.
For performance reasons, the implementation was placed in a public header. It is the responsibility of the user to ensure the platform supports GFNI (by doing runtime checks of rte_thash_gfni_supported variable) before calling these functions.

v8:
- rebased on the latest main
- fixed buffer overflow reported by ASAN

v7:
- reworked performance tests code

v6:
- addressed Thomas and Stephen's comments
- squash the doc and test commith with the relevant code addition
- split for 2 patches, each per implementation - single and bulk

v5:
- rebase on the latest main
- fix spelling

v4:
- included rte_log.h inside the rte_thash_gfni.h

v3:
- implementation moved to x86 specific header
- added rte_thash_gfni_supported() instead of the variable
- removed RTE_INIT section, due to adding rte_thash_gfni_supported()
- reworked rte_thash_complete_matrix() to make it easier tor read

v2:
- fixed typos
- made big_rss_key static const and indented
- addressed Konstantin's comments

Vladimir Medvedkin (4):
hash: add new toeplitz hash implementation
hash: add bulk toeplitz hash implementation
hash: enable gfni thash implementation test/thash: add performance tests for the Toeplitz hash

 app/test/meson.build                        |   2 +
 app/test/test_thash.c                       | 237 ++++++++++++++++++++++++++++
 app/test/test_thash_perf.c                  | 135 ++++++++++++++++
 doc/api/doxy-api-index.md                   |   1 +
 doc/guides/prog_guide/toeplitz_hash_lib.rst |  38 ++++-
 doc/guides/rel_notes/release_21_11.rst      |   4 +
 lib/hash/meson.build                        |   6 +-
 lib/hash/rte_thash.c                        |  72 ++++++++-
 lib/hash/rte_thash.h                        |  54 +++++++
 lib/hash/rte_thash_gfni.h                   |  87 ++++++++++
 lib/hash/rte_thash_x86_gfni.h               | 223 ++++++++++++++++++++++++++
 lib/hash/version.map                        |   6 +
 12 files changed, 856 insertions(+), 9 deletions(-)
 create mode 100644 app/test/test_thash_perf.c
 create mode 100644 lib/hash/rte_thash_gfni.h
 create mode 100644 lib/hash/rte_thash_x86_gfni.h
Signature · 1 line
2.7.4