Skip to content

Commit c416401

Browse files
chleroyFox Snowpatch
authored and
Fox Snowpatch
committed
powerpc/bpf: Remove classical BPF support for PPC32
At the time being, PPC32 has Classical BPF support. The test_bpf module exhibits some failure: test_bpf: torvalds#298 LD_IND byte frag jited:1 ret 202 != 66 FAIL (1 times) test_bpf: torvalds#299 LD_IND halfword frag jited:1 ret 51958 != 17220 FAIL (1 times) test_bpf: torvalds#301 LD_IND halfword mixed head/frag jited:1 ret 51958 != 1305 FAIL (1 times) test_bpf: torvalds#303 LD_ABS byte frag jited:1 ret 202 != 66 FAIL (1 times) test_bpf: torvalds#304 LD_ABS halfword frag jited:1 ret 51958 != 17220 FAIL (1 times) test_bpf: torvalds#306 LD_ABS halfword mixed head/frag jited:1 ret 51958 != 1305 FAIL (1 times) test_bpf: Summary: 371 PASSED, 7 FAILED, [119/366 JIT'ed] Fixing this is not worth the effort. Instead, remove support for classical BPF and prepare for adding Extended BPF support instead. Signed-off-by: Christophe Leroy <[email protected]>
1 parent a1d4aa5 commit c416401

File tree

5 files changed

+0
-1053
lines changed

5 files changed

+0
-1053
lines changed

Diff for: arch/powerpc/Kconfig

-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ config PPC
191191
select HAVE_ARCH_TRACEHOOK
192192
select HAVE_ASM_MODVERSIONS
193193
select HAVE_C_RECORDMCOUNT
194-
select HAVE_CBPF_JIT if !PPC64
195194
select HAVE_STACKPROTECTOR if PPC64 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r13)
196195
select HAVE_STACKPROTECTOR if PPC32 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r2)
197196
select HAVE_CONTEXT_TRACKING if PPC64

Diff for: arch/powerpc/net/Makefile

-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@
22
#
33
# Arch-specific network modules
44
#
5-
ifdef CONFIG_PPC64
65
obj-$(CONFIG_BPF_JIT) += bpf_jit_comp64.o
7-
else
8-
obj-$(CONFIG_BPF_JIT) += bpf_jit_asm.o bpf_jit_comp.o
9-
endif

Diff for: arch/powerpc/net/bpf_jit32.h

-139
This file was deleted.

Diff for: arch/powerpc/net/bpf_jit_asm.S

-226
This file was deleted.

0 commit comments

Comments
 (0)