aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/filter.h
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2016-05-13 19:08:27 +0200
committerDavid S. Miller <davem@davemloft.net>2016-05-16 13:49:31 -0400
commitc94987e40ebbae3b7b6c3ece37b6f8338830f6b1 (patch)
tree36b9c5c629d3d89b0507c50a1d42f34beab672e4 /include/linux/filter.h
parentbpf: minor cleanups in ebpf code (diff)
downloadlinux-dev-c94987e40ebbae3b7b6c3ece37b6f8338830f6b1.tar.xz
linux-dev-c94987e40ebbae3b7b6c3ece37b6f8338830f6b1.zip
bpf: move bpf_jit_enable declaration
Move the bpf_jit_enable declaration to the filter.h file where most other core code is declared, also since we're going to add a second knob there. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/filter.h')
-rw-r--r--include/linux/filter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h
index ec1411c89105..4ff0e647598f 100644
--- a/include/linux/filter.h
+++ b/include/linux/filter.h
@@ -496,6 +496,8 @@ void bpf_int_jit_compile(struct bpf_prog *fp);
bool bpf_helper_changes_skb_data(void *func);
#ifdef CONFIG_BPF_JIT
+extern int bpf_jit_enable;
+
typedef void (*bpf_jit_fill_hole_t)(void *area, unsigned int size);
struct bpf_binary_header *