bpf: hash: move select_bucket() out of htab's spinlock
authortom.leiming@gmail.com <tom.leiming@gmail.com>
Tue, 29 Dec 2015 14:40:26 +0000 (22:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Dec 2015 20:13:44 +0000 (15:13 -0500)
commit45d8390c56bd2851097736c1c20ad958880168df
tree230b546c8010d793e879618ffc656e12a07fd40a
parent6591f1e6662dd595effb52a54e42a6d2d2b03e51
bpf: hash: move select_bucket() out of htab's spinlock

The spinlock is just used for protecting the per-bucket
hlist, so it isn't needed for selecting bucket.

Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/hashtab.c