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

Provide a LRU version of the existing BPF_MAP_TYPE_PERCPU_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
kernel/bpf/syscall.c