]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Add libbpf support to batch ops
authorYonghong Song <yhs@fb.com>
Wed, 15 Jan 2020 18:43:06 +0000 (10:43 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 15 Jan 2020 22:00:35 +0000 (14:00 -0800)
commitb9edd85f616f4910fb639fb62112503bf0b832ab
tree0cd83172075796074ac3c27f58ba14e7c3f0ff7e
parentbbe669ed24b515a2b64cb48799d129f75f349b14
libbpf: Add libbpf support to batch ops

Added four libbpf API functions to support map batch operations:
  . int bpf_map_delete_batch( ... )
  . int bpf_map_lookup_batch( ... )
  . int bpf_map_lookup_and_delete_batch( ... )
  . int bpf_map_update_batch( ... )

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200115184308.162644-8-brianvv@google.com
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf.h
tools/lib/bpf/libbpf.map