]> 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)
commit13d11ac5e63deceaefbc7e167a3e12d2ef4f740e
tree0cd83172075796074ac3c27f58ba14e7c3f0ff7e
parentdff05d4905543767d11327d006e60e72018c7065
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