Re: [PATCH bpf-next v3] selftests/bpf: add XDP test for per-flow LRU_HASH window updates
From: Alexei Starovoitov
Date: Fri Oct 02 2026 - 07:52:58 EST
On Fri, Oct 02, 2026 at 05:38 AM Anil Kaushik <anilkaushikwireless@xxxxxxxxx> wrote:
> The LRU_HASH selftests (test_lru_map) exercise BPF_MAP_TYPE_LRU_HASH
> only from the syscall side. There is no coverage of an XDP program
> updating an LRU_HASH map on the data path: inserting an entry with
> BPF_NOEXIST on first sight of a flow, then updating a bounded array
> inside the map value using a runtime (modulo) index.
>
> That pattern is common in XDP flow-tracking programs and stresses two
> things worth testing together: the verifier's bounds checking of a
> value-internal array indexed by a runtime value, and per-flow key
> isolation in an LRU map driven from XDP.
Sorry, don't see the value in this test. LRU is already covered.
pw-bot: cr