]> asedeno.scripts.mit.edu Git - linux.git/commit
samples/bpf: add Paul Hsieh's (LGPL 2.1) hash function SuperFastHash
authorJesper Dangaard Brouer <brouer@redhat.com>
Fri, 10 Aug 2018 12:02:57 +0000 (14:02 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 10 Aug 2018 14:07:49 +0000 (16:07 +0200)
commit11395686586bc9ca867b3f27501fd6c48244187a
tree4f53275a6ac49883aae2eb93e96425c6c8bd4f8b
parenteb91e4d4db06adef06e7f50c02813c13c6ca5a5b
samples/bpf: add Paul Hsieh's (LGPL 2.1) hash function SuperFastHash

Adjusted function call API to take an initval. This allow the API
user to set the initial value, as a seed. This could also be used for
inputting the previous hash.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/hash_func01.h [new file with mode: 0644]