]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: adapt one more case in test_lru_map to the new target_free
authorWillem de Bruijn <willemb@google.com>
Wed, 25 Jun 2025 21:03:55 +0000 (17:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:35:22 +0000 (18:35 +0200)
commita4bb7ced4e8fec38a27d43f31bd0aef3f4be89f5
treec74cc14ec43930bca1f79775a6698abe80af1857
parentf35c825a012da9f4b1fd5db277f1141439e18270
selftests/bpf: adapt one more case in test_lru_map to the new target_free

commit 5e9388f7984a9cc7e659a105113f6ccf0aebedd0 upstream.

The below commit that updated BPF_MAP_TYPE_LRU_HASH free target,
also updated tools/testing/selftests/bpf/test_lru_map to match.

But that missed one case that passes with 4 cores, but fails at
higher cpu counts.

Update test_lru_sanity3 to also adjust its expectation of target_free.

This time tested with 1, 4, 16, 64 and 384 cpu count.

Fixes: d4adf1c9ee77 ("bpf: Adjust free target to avoid global starvation of LRU map")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20250625210412.2732970-1-willemdebruijn.kernel@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/bpf/test_lru_map.c