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)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 25 Jun 2025 22:19:36 +0000 (15:19 -0700)
commit5e9388f7984a9cc7e659a105113f6ccf0aebedd0
tree470fef817609f152f1a28d23bc780984a5d6e08b
parentfa6f092cc0a02d0fcee37e9e8172eda372a03d33
selftests/bpf: adapt one more case in test_lru_map to the new target_free

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>
tools/testing/selftests/bpf/test_lru_map.c