summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/net
diff options
context:
space:
mode:
authorArtem Savkov <asavkov@redhat.com>2024-05-17 09:56:46 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2024-07-11 07:40:20 +0200
commit3c086ce222cefcf16d412faa10d456161d076796 (patch)
tree7319c0f53ef230d60374d1b20c82b1199600db42 /arch/powerpc/net
parentpowerpc/pci: Hotplug driver bridge support (diff)
downloadlinux-3c086ce222cefcf16d412faa10d456161d076796.tar.xz
linux-3c086ce222cefcf16d412faa10d456161d076796.zip
powerpc64/bpf: jit support for 32bit offset jmp instruction
Add jit support for JMP32_JA instruction. Tested using test_bpf module. Signed-off-by: Artem Savkov <asavkov@redhat.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240517075650.248801-2-asavkov@redhat.com
Diffstat (limited to 'arch/powerpc/net')
-rw-r--r--arch/powerpc/net/bpf_jit_comp64.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/net/bpf_jit_comp64.c b/arch/powerpc/net/bpf_jit_comp64.c
index 7703dcf48be8..f1d7fcdeb14a 100644
--- a/arch/powerpc/net/bpf_jit_comp64.c
+++ b/arch/powerpc/net/bpf_jit_comp64.c
@@ -1065,6 +1065,9 @@ emit_clear:
case BPF_JMP | BPF_JA:
PPC_JMP(addrs[i + 1 + off]);
break;
+ case BPF_JMP32 | BPF_JA:
+ PPC_JMP(addrs[i + 1 + imm]);
+ break;
case BPF_JMP | BPF_JGT | BPF_K:
case BPF_JMP | BPF_JGT | BPF_X: