]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add bpf_map_{value_size, update_value, map_copy_value} functions
authorBrian Vazquez <brianvv@google.com>
Wed, 15 Jan 2020 18:43:00 +0000 (10:43 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 15 Jan 2020 22:00:34 +0000 (14:00 -0800)
commitbda911c448ef0b4f21b8ddc3d0d71cc1017875b5
treecb3253a97afb92ae7d174f4871159bcb8c498bb7
parent0b01e0db98e0b39750a23db56bce79effbdd5032
bpf: Add bpf_map_{value_size, update_value, map_copy_value} functions

This commit moves reusable code from map_lookup_elem and map_update_elem
to avoid code duplication in kernel/bpf/syscall.c.

Signed-off-by: Brian Vazquez <brianvv@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200115184308.162644-2-brianvv@google.com
kernel/bpf/syscall.c