Skip to content

Minor follow-up cleanups in BPF JITs and optimized imm emission

Daniel Borkmann netdev 2 versions Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 2 repliesApplied
  2. v16 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Minor fix in i64_i16_blocks() to remove 24 shift.
- Added last two patches.
- Added Acks from prior round.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8bpf, mips: remove unused functionarch/mips/net/ebpf_jit.c+0 -260 replies
2/8bpf, sparc: remove unused variablearch/sparc/net/bpf_jit_comp_64.c+0 -10 replies
3/8bpf, x64: clean up retpoline emission slightlyarch/x86/include/asm/nospec-branch.h+14 -150 replies
4/8bpf, arm32: save 4 bytes of unneeded stack spacearch/arm/net/bpf_jit_32.c+3 -100 replies
5/8bpf, arm64: save 4 bytes of unneeded stack spacearch/arm64/net/bpf_jit_comp.c+2 -50 replies
6/8bpf, arm64: optimize 32/64 immediate emissionarch/arm64/net/bpf_jit_comp.c+54 -310 replies
7/8bpf, arm64: save 4 bytes in prologue when ebpf insns came from cbpfarch/arm64/net/bpf_jit_comp.c+13 -100 replies
8/8bpf: add ld64 imm test casestools/testing/selftests/bpf/bpf_rand.h tools/testing/selftests/bpf/test_verifier.c+142 -01 reply

Reviews trailers per patch

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

PatchDavid S. MillerYonghong Song
1/8
2/8A-b
3/8A-b
4/8
5/8
6/8
7/8
8/8A-b

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

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/8] Minor follow-up cleanups in BPF JITs and optimized imm emission

This series follows up mostly with with some minor cleanups on top of 'Move ld_abs/ld_ind to native BPF' as well as implements better 32/64 bit immediate load into register and saves tail call init on cBPF for the arm64 JIT. Last but not least we add a couple of test cases. For details please see individual patches. Thanks!

v1 -> v2:
- Minor fix in i64_i16_blocks() to remove 24 shift.
- Added last two patches.
- Added Acks from prior round.

Daniel Borkmann (8):
bpf, mips: remove unused function
bpf, sparc: remove unused variable
bpf, x64: clean up retpoline emission slightly
bpf, arm32: save 4 bytes of unneeded stack space
bpf, arm64: save 4 bytes of unneeded stack space
bpf, arm64: optimize 32/64 immediate emission
bpf, arm64: save 4 bytes in prologue when ebpf insns came from cbpf
bpf: add ld64 imm test cases

 arch/arm/net/bpf_jit_32.c                   |  13 +---
 arch/arm64/net/bpf_jit_comp.c               | 115 +++++++++++++++++-----------
 arch/mips/net/ebpf_jit.c                    |  26 -------
 arch/sparc/net/bpf_jit_comp_64.c            |   1 -
 arch/x86/include/asm/nospec-branch.h        |  29 ++++---
 tools/testing/selftests/bpf/bpf_rand.h      |  80 +++++++++++++++++++
 tools/testing/selftests/bpf/test_verifier.c |  62 +++++++++++++++
 7 files changed, 228 insertions(+), 98 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/bpf_rand.h
Signature · 1 line
2.9.5