OSDN Git Service

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)
commit2ab3d86ea1859d1a4b830ce3551cba725620593a
tree0cd83172075796074ac3c27f58ba14e7c3f0ff7e
parenta1e3a3b8ba2c381a043d0c4273837895c1d3cf9c
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