]> Git Repo - linux.git/commit
libbpf: Extract generic string hashing function for reuse
authorAndrii Nakryiko <[email protected]>
Sat, 26 Sep 2020 01:13:52 +0000 (18:13 -0700)
committerAlexei Starovoitov <[email protected]>
Tue, 29 Sep 2020 00:27:31 +0000 (17:27 -0700)
commit7d9c71e10baa3496d95226aa3bba668f7533ec70
treeec6765ac143da67147fabf28281deee6d8a9050d
parent192f5a1fe6894dca58d14dc883e6c7030e7267f7
libbpf: Extract generic string hashing function for reuse

Calculating a hash of zero-terminated string is a common need when using
hashmap, so extract it for reuse.

Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
tools/lib/bpf/btf_dump.c
tools/lib/bpf/hashmap.h
This page took 0.055294 seconds and 4 git commands to generate.