[PATCH bpf-next v2 0/1] selftests: bpf: fix test_lru_sanity3
From: Eva Kurchatova
Date: Fri Sep 25 2026 - 11:51:26 EST
Changes in v2:
- Skip the test where __tgt_size(tgt_free) is 0 instead of forcing
batch_size to 1. With one element per refill the forced shrink on the
last insert evicts a live key, so v1 failed above 128 cpus, where the
original test still passed by degenerating.
- Drop assert(__tgt_size(map_size) == batch_size), it holds for every
batch_size and cpu count and checked nothing.
- Cut the comment above map_size to one line.
- Reword to better explain the cause of the failure.
- Sent separately from rest of v1 patchset.
Link to v1: https://lore.kernel.org/bpf/20260917015605.2464043-2-eva.kurchatova@xxxxxxxxxxxxx/
Eva Kurchatova (1):
selftests: bpf: size the map in test_lru_sanity3 to whole refills
tools/testing/selftests/bpf/test_lru_map.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
--
2.55.0