bpf: Add BPF_MAP_TYPE_LRU_HASH
authorMartin KaFai Lau <kafai@fb.com>
Fri, 11 Nov 2016 18:55:09 +0000 (10:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Nov 2016 16:50:20 +0000 (11:50 -0500)
commit29ba732acbeece1e34c68483d1ec1f3720fa1bb3
tree31274a2c9d6b8bda6cc14253d0781f6462974dd1
parentfd91de7b3c69a7f108b92521e1115df3e058af55
bpf: Add BPF_MAP_TYPE_LRU_HASH

Provide a LRU version of the existing BPF_MAP_TYPE_HASH.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/bpf.h
kernel/bpf/hashtab.c