OSDN Git Service

libbpf: Add bpf_map__inner_map API
authorAndrii Nakryiko <andrii.nakryiko@gmail.com>
Thu, 8 Apr 2021 06:13:08 +0000 (09:13 +0300)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 9 Apr 2021 06:54:48 +0000 (23:54 -0700)
commitb3278099b2f6e81771c6c2b70fcf9a56e9ba5d93
tree11d71a5a313975d00f2f2e35b74745dd37f1a094
parent23a65766066bb6e42a44e9097ddf79f72292a19f
libbpf: Add bpf_map__inner_map API

The API gives access to inner map for map in map types (array or
hash of map). It will be used to dynamically set max_entries in it.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210408061310.95877-7-yauheni.kaliuta@redhat.com
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h
tools/lib/bpf/libbpf.map