Re: [PATCH RFC bpf-next v2 16/18] selftests/bpf: Add BPF iterator tests for resizable hash map

Alexei Starovoitov
2026-04-12T23:20:59Z

On Wed, Apr 8, 2026 at 8:11 AM Mykyta Yatsenko
<mykyta.yatsenko5@gmail.com> wrote:
>
> From: Mykyta Yatsenko <yatsenko@meta.com>
>
> Test BPF iterator functionality for BPF_MAP_TYPE_RHASH:
> * Basic iteration verifying all elements are visited
> * Overflow test triggering seq_file restart, validating correct
> resume behavior via skip_elems tracking
>
> Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
> ---
> tools/testing/selftests/bpf/prog_tests/rhash.c | 160 ++++++++++++++++++++-
> .../selftests/bpf/progs/bpf_iter_bpf_rhash_map.c | 75 ++++++++++
> 2 files changed, 234 insertions(+), 1 deletion(-)

too much code for little test coverage.