diff options
author | Martin KaFai Lau <kafai@fb.com> | 2016-11-11 10:55:10 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-15 11:50:20 -0500 |
commit | 8f8449384ec364ba2a654f11f94e754e4ff719e0 (patch) | |
tree | 15fa61085e64895ab94d84c6d792ad0705bdcb4b /include/uapi/linux/bpf.h | |
parent | 29ba732acbeece1e34c68483d1ec1f3720fa1bb3 (diff) | |
download | lwn-8f8449384ec364ba2a654f11f94e754e4ff719e0.tar.gz lwn-8f8449384ec364ba2a654f11f94e754e4ff719e0.zip |
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>
Diffstat (limited to 'include/uapi/linux/bpf.h')
-rw-r--r-- | include/uapi/linux/bpf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index ed8c6799fb14..7d9b2832c280 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -86,6 +86,7 @@ enum bpf_map_type { BPF_MAP_TYPE_STACK_TRACE, BPF_MAP_TYPE_CGROUP_ARRAY, BPF_MAP_TYPE_LRU_HASH, + BPF_MAP_TYPE_LRU_PERCPU_HASH, }; enum bpf_prog_type { @@ -108,7 +109,7 @@ enum bpf_prog_type { #define BPF_F_NO_PREALLOC (1U << 0) /* Instead of having one common LRU list in the - * BPF_MAP_TYPE_LRU_HASH map, use a percpu LRU list + * BPF_MAP_TYPE_LRU_[PERCPU_]HASH map, use a percpu LRU list * which can scale and perform better. * Note, the LRU nodes (including free nodes) cannot be moved * across different LRU lists. |