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

Commit f0b5e8a4 authored by Pablo Neira's avatar Pablo Neira Committed by David S. Miller
Browse files

net: kill useless net_*_ingress_queue() definitions when NET_CLS_ACT is unset



This fixes 4577139b ("net: use jump label patching for ingress qdisc in
__netif_receive_skb_core").

The only client of this is sch_ingress and it depends on NET_CLS_ACT. So
there is no way these definition can be of any help.

Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarAlexei Starovoitov <ast@plumgrid.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9f0a74d7
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -82,14 +82,6 @@ struct netdev_queue *dev_ingress_queue_create(struct net_device *dev);
#ifdef CONFIG_NET_CLS_ACT
#ifdef CONFIG_NET_CLS_ACT
void net_inc_ingress_queue(void);
void net_inc_ingress_queue(void);
void net_dec_ingress_queue(void);
void net_dec_ingress_queue(void);
#else
static inline void net_inc_ingress_queue(void)
{
}

static inline void net_dec_ingress_queue(void)
{
}
#endif
#endif


extern void rtnetlink_init(void);
extern void rtnetlink_init(void);