diff options
author | Takshak Chahande <ctakshak@fb.com> | 2022-05-10 01:22:20 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-05-10 10:34:57 -0700 |
commit | 9263dddc7b6f816fdd327eee435cc54ba51dd095 (patch) | |
tree | 14509baef62b14a30ed234e8fd0cd2fcd0af60b8 /tools/testing/selftests/bpf/prog_tests/perf_buffer.c | |
parent | 174efa7811659b3e3dec05b3649dc6d66c8c4628 (diff) |
bpf: Extend batch operations for map-in-map bpf-maps
This patch extends batch operations support for map-in-map map-types:
BPF_MAP_TYPE_HASH_OF_MAPS and BPF_MAP_TYPE_ARRAY_OF_MAPS
A usecase where outer HASH map holds hundred of VIP entries and its
associated reuse-ports per VIP stored in REUSEPORT_SOCKARRAY type
inner map, needs to do batch operation for performance gain.
This patch leverages the exiting generic functions for most of the batch
operations. As map-in-map's value contains the actual reference of the inner map,
for BPF_MAP_TYPE_HASH_OF_MAPS type, it needed an extra step to fetch the
map_id from the reference value.
selftests are added in next patch 2/2.
Signed-off-by: Takshak Chahande <ctakshak@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220510082221.2390540-1-ctakshak@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/perf_buffer.c')
0 files changed, 0 insertions, 0 deletions