bpf: split HAVE_BPF_JIT into cBPF and eBPF variant
[linux-2.6-block.git] / net / Kconfig
index b841c42e5c9b7d38b0b62c9d6a31d0a61cc27409..f7148f24f11471696eee7d626352e02ea5b2f577 100644 (file)
@@ -289,7 +289,7 @@ config BQL
 
 config BPF_JIT
        bool "enable BPF Just In Time compiler"
-       depends on HAVE_BPF_JIT
+       depends on HAVE_CBPF_JIT || HAVE_EBPF_JIT
        depends on MODULES
        ---help---
          Berkeley Packet Filter filtering capabilities are normally handled
@@ -419,6 +419,14 @@ config MAY_USE_DEVLINK
 
 endif   # if NET
 
-# Used by archs to tell that they support BPF_JIT
-config HAVE_BPF_JIT
+# Used by archs to tell that they support BPF JIT compiler plus which flavour.
+# Only one of the two can be selected for a specific arch since eBPF JIT supersedes
+# the cBPF JIT.
+
+# Classic BPF JIT (cBPF)
+config HAVE_CBPF_JIT
+       bool
+
+# Extended BPF JIT (eBPF)
+config HAVE_EBPF_JIT
        bool