summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2018-08-22 23:49:37 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2018-08-23 18:45:47 +0200
commitc0203475765f827e7b2eaf0a87222d0766e2cc4b (patch)
tree0d71d10f5a83b6bd9a2c4d309edd81d7671c095d /net
parentbpf: sockmap: write_space events need to be passed to TCP handler (diff)
downloadlinux-c0203475765f827e7b2eaf0a87222d0766e2cc4b.tar.xz
linux-c0203475765f827e7b2eaf0a87222d0766e2cc4b.zip
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 'net')
0 files changed, 0 insertions, 0 deletions