public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [bpf-next 0/2] bpf: Add flag for batch operation
@ 2024-11-10 11:29 Florian Lehner
  2024-11-10 11:29 ` [bpf-next 1/2] bpf: Add flag to continue " Florian Lehner
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Florian Lehner @ 2024-11-10 11:29 UTC (permalink / raw)
  To: bpf
  Cc: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, aspsk, kees,
	quic_abchauha, martin.kelly, mykolal, shuah, yikai.lin,
	Florian Lehner

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.

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(-)

-- 
2.47.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-11-12 19:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-10 11:29 [bpf-next 0/2] bpf: Add flag for batch operation Florian Lehner
2024-11-10 11:29 ` [bpf-next 1/2] bpf: Add flag to continue " Florian Lehner
2024-11-10 11:29 ` [bpf-next 2/2] selftests/bpf: Add a test for batch operation flag Florian Lehner
2024-11-11 14:15 ` [bpf-next 0/2] bpf: Add flag for batch operation Hou Tao
2024-11-12  3:01   ` Alexei Starovoitov
2024-11-12 19:13     ` dev
2024-11-12 19:47       ` Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox