bpf: allow zero-initializing hash map seed
authorLorenz Bauer <lmb@cloudflare.com>
Fri, 16 Nov 2018 11:41:08 +0000 (11:41 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 19 Nov 2018 23:53:39 +0000 (00:53 +0100)
commit96b3b6c9091d23289721350e32c63cc8749686be
tree94552c4164204873c93534fb2383044e122d0488
parent23499442c319412aa8e54e7a939e2eb531bdd77d
bpf: allow zero-initializing hash map seed

Add a new flag BPF_F_ZERO_SEED, which forces a hash map
to initialize the seed to zero. This is useful when doing
performance analysis both on individual BPF programs, as
well as the kernel's hash table implementation.

Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/uapi/linux/bpf.h
kernel/bpf/hashtab.c