selftests/bpf: Make ehash buckets configurable in socket iterator tests
authorJordan Rife <jordan@jrife.io>
Mon, 14 Jul 2025 18:09:13 +0000 (11:09 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 14 Jul 2025 22:11:39 +0000 (15:11 -0700)
commit08327292e7093de9b68ef02fe975738799ceedf4
tree68e9e3b52ab49231e9ba4fdcae3d26a92d102991
parentf00468124a08a7ecd6f2ed932c57d86a1fc249db
selftests/bpf: Make ehash buckets configurable in socket iterator tests

Prepare for bucket resume tests for established TCP sockets by making
the number of ehash buckets configurable. Subsequent patches force all
established sockets into the same bucket by setting ehash_buckets to
one.

Signed-off-by: Jordan Rife <jordan@jrife.io>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c