Skip to content

BPF cleanups and misc updates

Daniel Borkmann netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6bpf: drop unnecessary context cast from BPF_PROG_RUNdrivers/net/ethernet/netronome/nfp/nfp_net_common.c include/linux/filter.h kernel/events/core.c +1 more+6 -60 replies
2/6bpf: drop useless bpf_fd member from cls/actnet/sched/act_bpf.c net/sched/cls_bpf.c+1 -150 replies
3/6bpf: reuse dev_is_mac_header_xmit for redirectinclude/linux/if_arp.h net/core/filter.c net/sched/act_mirred.c+21 -240 replies
4/6bpf: add owner_prog_type and accounted mem to array map's fdinfokernel/bpf/syscall.c+15 -20 replies
5/6bpf: allow for mount options to specify permissionskernel/bpf/inode.c+53 -10 replies
6/6bpf: fix multiple issues in selftest suite and samplessamples/bpf/Makefile samples/bpf/test_lru_dist.c samples/bpf/tracex2_user.c +6 more+64 -110 replies

Reviews trailers per patch

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

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

This patch set adds couple of cleanups in first few patches, exposes owner_prog_type for array maps as well as mlocked mem for maps in fdinfo, allows for mount permissions in fs and fixes various outstanding issues in selftests and samples.

Thanks!

Daniel Borkmann (6):
bpf: drop unnecessary context cast from BPF_PROG_RUN
bpf: drop useless bpf_fd member from cls/act
bpf: reuse dev_is_mac_header_xmit for redirect
bpf: add owner_prog_type and accounted mem to array map's fdinfo
bpf: allow for mount options to specify permissions
bpf: fix multiple issues in selftest suite and samples

 .../net/ethernet/netronome/nfp/nfp_net_common.c    |  2 +-
 include/linux/filter.h                             |  6 +--
 include/linux/if_arp.h                             | 16 +++++++
 kernel/bpf/inode.c                                 | 54 +++++++++++++++++++++-
 kernel/bpf/syscall.c                               | 17 ++++++-
 kernel/events/core.c                               |  2 +-
 kernel/seccomp.c                                   |  2 +-
 net/core/filter.c                                  | 14 ++----
 net/sched/act_bpf.c                                |  7 ---
 net/sched/act_mirred.c                             | 15 +-----
 net/sched/cls_bpf.c                                |  9 +---
 samples/bpf/Makefile                               |  1 +
 samples/bpf/test_lru_dist.c                        |  5 +-
 samples/bpf/tracex2_user.c                         |  4 +-
 samples/bpf/tracex3_user.c                         |  6 ++-
 samples/bpf/xdp1_user.c                            |  4 +-
 tools/testing/selftests/bpf/bpf_util.h             | 38 +++++++++++++++
 tools/testing/selftests/bpf/test_lru_map.c         |  8 +++-
 tools/testing/selftests/bpf/test_maps.c            |  7 +--
 tools/testing/selftests/bpf/test_verifier.c        |  2 +-
 20 files changed, 160 insertions(+), 59 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/bpf_util.h
Signature · 1 line
1.9.3