bpf: Implement bpf iterator for array maps
authorYonghong Song <yhs@fb.com>
Thu, 23 Jul 2020 18:41:15 +0000 (11:41 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 26 Jul 2020 03:16:33 +0000 (20:16 -0700)
commitd3cc2ab546adc6e52b65f36f7c34820d2830d0c9
tree600669df82d2095897e71afd63df3ffad0df754b
parentd6c4503cc29638f328e1a6e6fefbdbda401c28fc
bpf: Implement bpf iterator for array maps

The bpf iterators for array and percpu array
are implemented. Similar to hash maps, for percpu
array map, bpf program will receive values
from all cpus.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200723184115.590532-1-yhs@fb.com
kernel/bpf/arraymap.c
kernel/bpf/map_iter.c