summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorArtem Savkov <asavkov@redhat.com>2024-05-17 10:56:46 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2024-07-11 08:40:20 +0300
commit3c086ce222cefcf16d412faa10d456161d076796 (patch)
tree7319c0f53ef230d60374d1b20c82b1199600db42 /arch
parent20ce0c247b2500cb7060cb115274ba71abda2626 (diff)
downloadlinux-3c086ce222cefcf16d412faa10d456161d076796.tar.xz
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')
-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: