diff options
| author | Daniel Borkmann <daniel@iogearbox.net> | 2016-05-13 19:08:27 +0200 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2022-04-19 00:50:17 +0300 |
| commit | fc8a66b74bd12a623ce49edddd6f473727e85450 (patch) | |
| tree | f66ad178b7bde5316460faae739780aeee6e8ee1 | |
| parent | c9ec65e0586d6f56780c153652d8e730f1f9b262 (diff) | |
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>
Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
| -rw-r--r-- | include/linux/filter.h | 2 | ||||
| -rw-r--r-- | include/linux/netdevice.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index a2560d01ae06..48a37cb55775 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -469,6 +469,8 @@ struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, const struct bpf_insn *patch, u32 len); #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 * diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index e080ad78e2ba..faffcd8438a2 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -3632,7 +3632,6 @@ void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64, extern int netdev_max_backlog; extern int netdev_tstamp_prequeue; extern int weight_p; -extern int bpf_jit_enable; bool netdev_has_upper_dev(struct net_device *dev, struct net_device *upper_dev); struct net_device *netdev_upper_get_next_dev_rcu(struct net_device *dev, |
