Skip to content

bpf: improve fd array release

Daniel Borkmann netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bpf, maps: add release callbackinclude/linux/bpf.h kernel/bpf/syscall.c+8 -20 replies
2/3bpf, maps: extend map_fd_get_ptr argumentsinclude/linux/bpf.h kernel/bpf/arraymap.c kernel/bpf/syscall.c+24 -100 replies
3/3bpf, maps: flush own entries on perf map releaseinclude/linux/bpf.h kernel/bpf/arraymap.c kernel/trace/bpf_trace.c+91 -380 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAlexei Starovoitov
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/3] bpf: improve fd array release

This set improves BPF perf fd array map release wrt to purging entries, first two extend the API as needed. Please see individual patches for more details.

Thanks!

Daniel Borkmann (3):
bpf, maps: add release callback
bpf, maps: extend map_fd_get_ptr arguments bpf, maps: flush own entries on perf map release

 include/linux/bpf.h      |  24 ++++++++--
 kernel/bpf/arraymap.c    | 116 +++++++++++++++++++++++++++++++++--------------
 kernel/bpf/syscall.c     |  13 +++++-
 kernel/trace/bpf_trace.c |  18 ++++----
 4 files changed, 122 insertions(+), 49 deletions(-)
Signature · 1 line
1.9.3