]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add batched ops support for percpu array
authorPedro Tammela <pctammela@gmail.com>
Sat, 24 Apr 2021 21:45:09 +0000 (18:45 -0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 27 Apr 2021 23:17:45 +0000 (01:17 +0200)
commitf3af0dfd50a0ccbb704356ec53e37455182ab4dc
tree45a933740031956a804209be3b462e3694f75e7e
parent5d5e55b5594de782ac5336f1c64d5ac39d1ea61d
bpf: Add batched ops support for percpu array

Uses the already in-place infrastructure provided by the
'generic_map_*_batch' functions.

No tweak was needed as it transparently handles the percpu variant.

As arrays don't have delete operations, let it return a error to
user space (default behaviour).

Suggested-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210424214510.806627-2-pctammela@mojatatu.com
kernel/bpf/arraymap.c