diff mbox series

selftests: bpf: add config fragment BPF_JIT

Message ID 20190820134134.25818-1-anders.roxell@linaro.org (mailing list archive)
State Mainlined
Commit 0604409df9e04cdec7b08d471c8c1c0c10b5554d
Headers show
Series selftests: bpf: add config fragment BPF_JIT | expand

Commit Message

Anders Roxell Aug. 20, 2019, 1:41 p.m. UTC
When running test_kmod.sh the following shows up

 # sysctl cannot stat /proc/sys/net/core/bpf_jit_enable No such file or directory
 cannot: stat_/proc/sys/net/core/bpf_jit_enable #
 # sysctl cannot stat /proc/sys/net/core/bpf_jit_harden No such file or directory
 cannot: stat_/proc/sys/net/core/bpf_jit_harden #

Rework to enable CONFIG_BPF_JIT to solve "No such file or directory"

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 tools/testing/selftests/bpf/config | 1 +
 1 file changed, 1 insertion(+)

Comments

Daniel Borkmann Aug. 21, 2019, 3:11 p.m. UTC | #1
On 8/20/19 3:41 PM, Anders Roxell wrote:
> When running test_kmod.sh the following shows up
> 
>   # sysctl cannot stat /proc/sys/net/core/bpf_jit_enable No such file or directory
>   cannot: stat_/proc/sys/net/core/bpf_jit_enable #
>   # sysctl cannot stat /proc/sys/net/core/bpf_jit_harden No such file or directory
>   cannot: stat_/proc/sys/net/core/bpf_jit_harden #
> 
> Rework to enable CONFIG_BPF_JIT to solve "No such file or directory"
> 
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

Applied, thanks!
diff mbox series

Patch

diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config
index f7a0744db31e..5dc109f4c097 100644
--- a/tools/testing/selftests/bpf/config
+++ b/tools/testing/selftests/bpf/config
@@ -34,3 +34,4 @@  CONFIG_NET_MPLS_GSO=m
 CONFIG_MPLS_ROUTING=m
 CONFIG_MPLS_IPTUNNEL=m
 CONFIG_IPV6_SIT=m
+CONFIG_BPF_JIT=y