diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2018-08-22 23:49:37 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-08-23 18:45:47 +0200 |
commit | c0203475765f827e7b2eaf0a87222d0766e2cc4b (patch) | |
tree | 0d71d10f5a83b6bd9a2c4d309edd81d7671c095d /net | |
parent | bpf: sockmap: write_space events need to be passed to TCP handler (diff) | |
download | linux-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