]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01c38a5dd5f0b60cbc8577c88d7ae93b9245230b
tree600669df82d2095897e71afd63df3ffad0df754b
parent9bf2b8baf1aad651d7f466f6e0bf5080e257f2e1
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