]> git.baikalelectronics.ru Git - kernel.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)
commitace8ae3eb459cb65deae24e548cf2d8efc082676
tree4f53275a6ac49883aae2eb93e96425c6c8bd4f8b
parent319028cb03e87ec05434a9ed4cc07e3216636409
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]