Skip to content

BPF updates

Daniel Borkmann lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 51 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4bpf: abstract anon_inode_getfd invocationskernel/bpf/syscall.c+14 -30 replies
2/4bpf: align and clean bpf_{map,prog}_get helpersinclude/linux/bpf.h kernel/bpf/syscall.c kernel/bpf/verifier.c+25 -210 replies
3/4bpf: add support for persistent maps/progsinclude/linux/bpf.h include/uapi/linux/bpf.h include/uapi/linux/magic.h +4 more+758 -3850 replies
4/4bpf: add sample usages for persistent maps/progssamples/bpf/Makefile samples/bpf/fds_example.c samples/bpf/libbpf.c +1 more+249 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchAlexei Starovoitov
1/4A-b
2/4A-b
3/4
4/4A-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/4] BPF updates

This set adds support for persistent maps/progs. Please see individual patches for further details.

A man-page update to bpf(2) will be sent afterwards, also a iproute2 patch for support in tc.

Thanks!

Daniel Borkmann (4):
bpf: abstract anon_inode_getfd invocations
bpf: align and clean bpf_{map,prog}_get helpers
bpf: add support for persistent maps/progs
bpf: add sample usages for persistent maps/progs

 include/linux/bpf.h        |  23 +-
 include/uapi/linux/bpf.h   |  45 +---
 include/uapi/linux/magic.h |   1 +
 include/uapi/linux/xattr.h |   3 +
 kernel/bpf/Makefile        |   4 +-
 kernel/bpf/inode.c         | 614 +++++++++++++++++++++++++++++++++++++++++++++
 kernel/bpf/syscall.c       | 164 ++++++++++--
 kernel/bpf/verifier.c      |   3 +-
 samples/bpf/Makefile       |   2 +
 samples/bpf/fds_example.c  | 224 +++++++++++++++++
 samples/bpf/libbpf.c       |  20 ++
 samples/bpf/libbpf.h       |   3 +
 12 files changed, 1045 insertions(+), 61 deletions(-)
 create mode 100644 kernel/bpf/inode.c
 create mode 100644 samples/bpf/fds_example.c
Signature · 1 line
1.9.3