Re: [PATCH v2 4/5] bpf: Add an iterator selftest for bpf_sk_storage_delete

From: Martin KaFai Lau
Date: Thu Nov 19 2020 - 19:18:15 EST


On Thu, Nov 19, 2020 at 05:26:53PM +0100, Florent Revest wrote:
> From: Florent Revest <revest@xxxxxxxxxx>
>
> The eBPF program iterates over all entries (well, only one) of a socket
> local storage map and deletes them all. The test makes sure that the
> entry is indeed deleted.
Note that if there are many entries and seq->op->stop() is called (due to
seq_has_overflowed()). It is possible that not all of the entries will be
iterated (and deleted). However, I think it is a more generic issue in
resuming the iteration and not specific to this series.

Acked-by: Martin KaFai Lau <kafai@xxxxxx>