diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-09-28 11:20:55 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-09-30 12:40:37 +0200 |
commit | 7a3153cbfb72f603ae31269bdc11c9275dbd2319 (patch) | |
tree | bc319ea93675cef79ec03203548d3ff9935048f5 /netlink.c | |
parent | f7b2be2d2121c403e39586d75af8c34ec545df21 (diff) | |
download | passt-7a3153cbfb72f603ae31269bdc11c9275dbd2319.tar passt-7a3153cbfb72f603ae31269bdc11c9275dbd2319.tar.gz passt-7a3153cbfb72f603ae31269bdc11c9275dbd2319.tar.bz2 passt-7a3153cbfb72f603ae31269bdc11c9275dbd2319.tar.lz passt-7a3153cbfb72f603ae31269bdc11c9275dbd2319.tar.xz passt-7a3153cbfb72f603ae31269bdc11c9275dbd2319.tar.zst passt-7a3153cbfb72f603ae31269bdc11c9275dbd2319.zip |
siphash: Add siphash_feed() helper
We have macros or inlines for a number of common operations in the siphash
functions. However, in a number of places we still open code feeding
another 64-bits of data into the hash function: an xor, followed by 2
rounds of shuffling, followed by another xor.
Implement an inline function for this, which results in somewhat shortened
code.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'netlink.c')
0 files changed, 0 insertions, 0 deletions