summaryrefslogtreecommitdiff
path: root/tools/bpf/bpf_asm.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2018-08-23 00:49:37 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2018-08-23 19:45:47 +0300
commitc0203475765f827e7b2eaf0a87222d0766e2cc4b (patch)
tree0d71d10f5a83b6bd9a2c4d309edd81d7671c095d /tools/bpf/bpf_asm.c
parent9b2e0388bec8ec5427403e23faff3b58dd1c3200 (diff)
downloadlinux-c0203475765f827e7b2eaf0a87222d0766e2cc4b.tar.xz
bpf: use per htab salt for bucket hash
All BPF hash and LRU maps currently have a known and global seed we feed into jhash() which is 0. This is suboptimal, thus fix it by generating a random seed upon hashtab setup time which we can later on feed into jhash() on lookup, update and deletions. Fixes: 0f8e4bd8a1fc8 ("bpf: add hashtable type of eBPF maps") Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Song Liu <songliubraving@fb.com> Reviewed-by: Eduardo Valentin <eduval@amazon.com>
Diffstat (limited to 'tools/bpf/bpf_asm.c')
0 files changed, 0 insertions, 0 deletions