Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c94987e4 authored by Daniel Borkmann's avatar Daniel Borkmann Committed by David S. Miller
Browse files

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: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4936e352
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -496,6 +496,8 @@ void bpf_int_jit_compile(struct bpf_prog *fp);
bool bpf_helper_changes_skb_data(void *func);
bool bpf_helper_changes_skb_data(void *func);


#ifdef CONFIG_BPF_JIT
#ifdef CONFIG_BPF_JIT
extern int bpf_jit_enable;

typedef void (*bpf_jit_fill_hole_t)(void *area, unsigned int size);
typedef void (*bpf_jit_fill_hole_t)(void *area, unsigned int size);


struct bpf_binary_header *
struct bpf_binary_header *
+0 −1
Original line number Original line Diff line number Diff line
@@ -3759,7 +3759,6 @@ void netdev_stats_to_stats64(struct rtnl_link_stats64 *stats64,
extern int		netdev_max_backlog;
extern int		netdev_max_backlog;
extern int		netdev_tstamp_prequeue;
extern int		netdev_tstamp_prequeue;
extern int		weight_p;
extern int		weight_p;
extern int		bpf_jit_enable;


bool netdev_has_upper_dev(struct net_device *dev, struct net_device *upper_dev);
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,
struct net_device *netdev_upper_get_next_dev_rcu(struct net_device *dev,