Skip to content

Commit 3c086ce

Browse files
sm00thmpe
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent 20ce0c2 commit 3c086ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/powerpc/net/bpf_jit_comp64.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,9 @@ int bpf_jit_build_body(struct bpf_prog *fp, u32 *image, u32 *fimage, struct code
10651065
case BPF_JMP | BPF_JA:
10661066
PPC_JMP(addrs[i + 1 + off]);
10671067
break;
1068+
case BPF_JMP32 | BPF_JA:
1069+
PPC_JMP(addrs[i + 1 + imm]);
1070+
break;
10681071

10691072
case BPF_JMP | BPF_JGT | BPF_K:
10701073
case BPF_JMP | BPF_JGT | BPF_X:

0 commit comments

Comments
 (0)