Skip to content

bpf: Enable BPF JIT on ppc32

Denis Kirjanov linuxppc-dev netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ppc: Kconfig: Enable BPF JIT on ppc32arch/powerpc/Kconfig+1 -13 replies
2/6ppc: bpf: add required compatibility macros for jitarch/powerpc/include/asm/asm-compat.h+4 -00 replies
3/6ppc: bpf: add reqired opcodes for ppc32arch/powerpc/include/asm/ppc-opcode.h+2 -00 replies
4/6ppc: bpf: update jit to use compatibility macrosarch/powerpc/net/bpf_jit.h arch/powerpc/net/bpf_jit_64.S arch/powerpc/net/bpf_jit_comp.c+98 -510 replies
5/6ppc: bpf: rename bpf_jit_64.S to bpf_jit_asm.Sarch/powerpc/net/Makefile arch/powerpc/net/bpf_jit_asm.S+1 -10 replies
6/6ppc: bpf: Add SKF_AD_CPU for ppc32arch/powerpc/net/bpf_jit.h arch/powerpc/net/bpf_jit_comp.c+18 -130 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/6] bpf: Enable BPF JIT on ppc32

This patch series enables BPF JIT on ppc32. There are relatevily few chnages in the code to make it work.

All test_bpf tests passed both on 7447a and P2041-based machines.

 arch/powerpc/Kconfig                  |   2 +-
 arch/powerpc/include/asm/asm-compat.h |   4 +
 arch/powerpc/include/asm/ppc-opcode.h |   2 +
 arch/powerpc/net/Makefile             |   2 +-
 arch/powerpc/net/bpf_jit.h            |  47 ++++++-
 arch/powerpc/net/bpf_jit_64.S         | 229 ----------------------------------
 arch/powerpc/net/bpf_jit_asm.S        | 229 ++++++++++++++++++++++++++++++++++
 arch/powerpc/net/bpf_jit_comp.c       |  32 ++---
 8 files changed, 300 insertions(+), 247 deletions(-)