diff options
author | Daniel T. Lee <[email protected]> | 2020-07-08 03:48:53 +0900 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-07-08 01:33:10 +0200 |
commit | 88795b4adb01a30fbfd75ef1c1ef73b4442e38b2 (patch) | |
tree | 674e5c8c7fcac6d50e75fb5a185c5b0493eed7f7 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | af9bd3e3331b8af42b6606c75797d041ab39380c (diff) |
samples: bpf: Refactor BPF map in map test with libbpf
From commit 646f02ffdd49 ("libbpf: Add BTF-defined map-in-map
support"), a way to define internal map in BTF-defined map has been
added.
Instead of using previous 'inner_map_idx' definition, the structure to
be used for the inner map can be directly defined using array directive.
__array(values, struct inner_map)
This commit refactors map in map test program with libbpf by explicitly
defining inner map with BTF-defined format.
Signed-off-by: Daniel T. Lee <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions