Skip to contentSkip to conversation

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

PATCH Applied Pablo Neira Ayuso 4 participants 4 messages May 12, 2015 – May 13, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

This fixes 4577139b2dabf589 ("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.

---
 include/linux/rtnetlink.h |    8 --------
 1 file changed, 8 deletions(-)
include/linux/rtnetlink.h +0 -8
index 7b8e260..bd29ab4 100644
@@ -82,14 +82,6 @@ struct netdev_queue *dev_ingress_queue_create(struct net_device *dev);
 #ifdef CONFIG_NET_CLS_ACT
 void net_inc_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
 
 extern void rtnetlink_init(void);
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#2 lore raw
In reply to Pablo Neira Ayuso
Quoted 9 lines · Pablo Neira Ayuso

This fixes 4577139b2dabf589 ("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.

---

thank you for following up on this one.

maintainer Applied
#3 lore raw
In reply to Pablo Neira Ayuso

From: Pablo Neira Ayuso <[email protected]>
Date: Tue, 12 May 2015 20:28:07 +0200

Quoted 8 lines

This fixes 4577139b2dabf589 ("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.

Applied, thanks Pablo.