Re: [PATCH RFC bpf-next v2 13/18] selftests/bpf: Support resizable hashtab in test_maps

Alexei Starovoitov
2026-04-12T23:18:08Z

On Wed, Apr 8, 2026 at 8:10 AM Mykyta Yatsenko
<mykyta.yatsenko5@gmail.com> wrote:
>
> From: Mykyta Yatsenko <yatsenko@meta.com>
>
> Parameterize existing htab tests (test_hashmap, test_hashmap_sizes,
> test_hashmap_walk, htab_map_batch_ops) by map type so they run
> against BPF_MAP_TYPE_RHASH as well. Relax ordering and exact-count
> assertions where rhashtable resize makes them non-deterministic.
>
> Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
> ---
> .../selftests/bpf/map_tests/htab_map_batch_ops.c | 22 +++-
> tools/testing/selftests/bpf/test_maps.c | 127 ++++++++++++++++-----
> 2 files changed, 114 insertions(+), 35 deletions(-)

drop test_maps changes. It's quite obsolete. We probably should delete it.