On 11/10/2024 7:29 PM, Florian Lehner wrote: > Introduce a new flag for batch operations that allows the deletion process > to continue even if certain keys are missing. This simplifies map flushing > by eliminating the requirement to maintain a separate list of keys and > makes sure maps can be flushed with a single batch delete operation. Is it expensive to close and recreate a new map instead ? If it is expensive, does it make more sense to add a new command to delete all elements in the map ? Because reusing the deletion logic will make each deletion involve an unnecessary lookup operation. > > Florian Lehner (2): > bpf: Add flag to continue batch operation > selftests/bpf: Add a test for batch operation flag > > include/uapi/linux/bpf.h | 5 +++++ > kernel/bpf/syscall.c | 14 ++++++++++--- > tools/include/uapi/linux/bpf.h | 5 +++++ > .../bpf/map_tests/htab_map_batch_ops.c | 20 ++++++++++++++++++- > 4 files changed, 40 insertions(+), 4 deletions(-) >