Skip to content

Some BPF helper cleanups

Daniel Borkmann netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4bpf: minor cleanups in helperskernel/bpf/helpers.c net/core/filter.c+6 -70 replies
2/4bpf: add BPF_SIZEOF and BPF_FIELD_SIZEOF macrosinclude/linux/filter.h kernel/trace/bpf_trace.c net/core/filter.c+27 -140 replies
3/4bpf: add own ctx rewriter on ifindex for clsact progsnet/core/filter.c+31 -60 replies
4/4bpf: add BPF_CALL_x macros for declaring helpersinclude/linux/filter.h kernel/bpf/core.c kernel/bpf/helpers.c +3 more+149 -1580 replies

Reviews trailers per patch

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

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

This series contains a couple of misc cleanups and improvements for BPF helpers. For details please see individual patches. We let this also sit for a few days with Fengguang's kbuild test robot, and there were no issues seen (besides one false positive, see last one for details).

Thanks!

Daniel Borkmann (4):
bpf: minor cleanups in helpers
bpf: add BPF_SIZEOF and BPF_FIELD_SIZEOF macros
bpf: add own ctx rewriter on ifindex for clsact progs
bpf: add BPF_CALL_x macros for declaring helpers

 include/linux/filter.h   |  64 ++++++++++++++++
 kernel/bpf/core.c        |   2 +-
 kernel/bpf/helpers.c     |  52 ++++---------
 kernel/bpf/stackmap.c    |   5 +-
 kernel/trace/bpf_trace.c |  87 +++++++++++-----------
 net/core/filter.c        | 188 ++++++++++++++++++++++-------------------------
 6 files changed, 213 insertions(+), 185 deletions(-)
Signature · 1 line
1.9.3