bpf: Allow building BPF JIT without module support on arm64

arm64 no longer uses the module_alloc and module_free functions to
allocate JIT memory for the BPF JIT, so we can safely build and use the
BPF JIT without module support.

Signed-off-by: Danny Lin <danny@kdrag0n.dev>
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
This commit is contained in:
Danny Lin 2019-08-25 17:56:21 -07:00 committed by spakkkk
parent c5cb7c90bf
commit 69b8fbef2c

View File

@ -295,7 +295,7 @@ config BQL
config BPF_JIT
bool "enable BPF Just In Time compiler"
depends on HAVE_CBPF_JIT || HAVE_EBPF_JIT
depends on MODULES
depends on MODULES || ARM64
---help---
Berkeley Packet Filter filtering capabilities are normally handled
by an interpreter. This option allows kernel to generate a native