]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a86407c8f7c1d938517b1c0f816831243255a68
tree11d71a5a313975d00f2f2e35b74745dd37f1a094
parent45065b0ab6972a4b5a42756199d323111f8a1a0b
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