Skip to content

Allow mixing bpf2bpf calls with tail calls on arm64

Jakub Sitnicki bpf netdev 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: x64: Add predicate for bpf2bpf with tailcalls support in JITarch/x86/net/bpf_jit_comp.c include/linux/filter.h kernel/bpf/core.c +1 more+15 -10 repliesApplied
2/2bpf: arm64: Keep tail call count across bpf2bpf callsarch/arm64/net/bpf_jit_comp.c+8 -10 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] Allow mixing bpf2bpf calls with tail calls on arm64

This patch set enables using bpf2bpf calls together with tail calls on arm64. Patch 1 was borrowed from an RFC series for MIPS JIT [1].
Patch 2 gives an explanation of tweaks needed to arm64 BPF JIT.

[1] https://lore.kernel.org/bpf/77dfea2d224e7545e5e4d3f350721d27e5a77b0d.1633392335.git.Tony.Ambardar@gmail.com/#r

Jakub Sitnicki (1):
bpf: arm64: Keep tail call count across bpf2bpf calls

Tony Ambardar (1):
bpf: x64: Add predicate for bpf2bpf with tailcalls support in JIT

 arch/arm64/net/bpf_jit_comp.c | 9 ++++++++-
 arch/x86/net/bpf_jit_comp.c   | 6 ++++++
 include/linux/filter.h        | 1 +
 kernel/bpf/core.c             | 6 ++++++
 kernel/bpf/verifier.c         | 3 ++-
 5 files changed, 23 insertions(+), 2 deletions(-)
Signature · 1 line
2.35.3