public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH v2 00/10] siphash: cleanups and fixes
@ 2023-09-28  1:20 David Gibson
  2023-09-28  1:20 ` [PATCH v2 01/10] siphash: Make siphash functions consistently return 64-bit results David Gibson
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: David Gibson @ 2023-09-28  1:20 UTC (permalink / raw)
  To: Stefano Brivio, passt-dev; +Cc: David Gibson

While working on unifying the hashing for the flow table, I noticed
some awkwardness in the siphash functions.  While looking into that I
noticed some bugs.  So.. here we are.

Changes since v1:
 * Don't accidentally increase the alignment of union inany_addr

David Gibson (10):
  siphash: Make siphash functions consistently return 64-bit results
  siphash: Make sip round calculations an inline function rather than
    macro
  siphash: Add siphash_feed() helper
  siphash: Clean up hash finalisation with posthash_final() function
  siphash: Fix bug in state initialisation
  siphash: Use more hygienic state initialiser
  siphash: Use specific structure for internal state
  siphash: Make internal helpers public
  siphash, checksum: Move TBAA explanation to checksum.c
  siphash: Use incremental rather than all-at-once siphash functions

 Makefile     |   2 +-
 checksum.c   |  19 ++--
 inany.h      |  17 +++-
 siphash.c    | 243 ---------------------------------------------------
 siphash.h    | 119 +++++++++++++++++++++++--
 tcp.c        |  37 +++-----
 tcp_splice.c |   1 +
 7 files changed, 159 insertions(+), 279 deletions(-)
 delete mode 100644 siphash.c

-- 
2.41.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-09-30 10:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-28  1:20 [PATCH v2 00/10] siphash: cleanups and fixes David Gibson
2023-09-28  1:20 ` [PATCH v2 01/10] siphash: Make siphash functions consistently return 64-bit results David Gibson
2023-09-28  1:20 ` [PATCH v2 02/10] siphash: Make sip round calculations an inline function rather than macro David Gibson
2023-09-28  1:20 ` [PATCH v2 03/10] siphash: Add siphash_feed() helper David Gibson
2023-09-28  1:20 ` [PATCH v2 04/10] siphash: Clean up hash finalisation with posthash_final() function David Gibson
2023-09-28  1:20 ` [PATCH v2 05/10] siphash: Fix bug in state initialisation David Gibson
2023-09-28  1:20 ` [PATCH v2 06/10] siphash: Use more hygienic state initialiser David Gibson
2023-09-28  1:20 ` [PATCH v2 07/10] siphash: Use specific structure for internal state David Gibson
2023-09-28  1:21 ` [PATCH v2 08/10] siphash: Make internal helpers public David Gibson
2023-09-28  1:21 ` [PATCH v2 09/10] siphash, checksum: Move TBAA explanation to checksum.c David Gibson
2023-09-28  1:21 ` [PATCH v2 10/10] siphash: Use incremental rather than all-at-once siphash functions David Gibson
2023-09-30 10:43 ` [PATCH v2 00/10] siphash: cleanups and fixes Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).