diff options
author | Florian Westphal <fw@strlen.de> | 2016-06-09 00:27:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-09 08:58:51 +0200 |
commit | c3a173d7dba2d7c74dd4ab871b8f22bf56ac10b2 (patch) | |
tree | 52e2931588e37db52cafb4ec79e08579609e20a8 /include/net/sch_generic.h | |
parent | cbq: remove TCA_CBQ_POLICE support (diff) | |
download | linux-c3a173d7dba2d7c74dd4ab871b8f22bf56ac10b2.tar.xz linux-c3a173d7dba2d7c74dd4ab871b8f22bf56ac10b2.zip |
sched: remove qdisc_rehape_fail
After the removal of TCA_CBQ_POLICE in cbq scheduler qdisc->reshape_fail
is always NULL, i.e. qdisc_rehape_fail is now the same as qdisc_drop.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sch_generic.h')
-rw-r--r-- | include/net/sch_generic.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index c069ac1dd75d..a9aec633d467 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -63,9 +63,6 @@ struct Qdisc { struct list_head list; u32 handle; u32 parent; - int (*reshape_fail)(struct sk_buff *skb, - struct Qdisc *q); - void *u32_node; struct netdev_queue *dev_queue; @@ -771,22 +768,6 @@ static inline int qdisc_drop(struct sk_buff *skb, struct Qdisc *sch) return NET_XMIT_DROP; } -static inline int qdisc_reshape_fail(struct sk_buff *skb, struct Qdisc *sch) -{ - qdisc_qstats_drop(sch); - -#ifdef CONFIG_NET_CLS_ACT - if (sch->reshape_fail == NULL || sch->reshape_fail(skb, sch)) - goto drop; - - return NET_XMIT_SUCCESS; - -drop: -#endif - kfree_skb(skb); - return NET_XMIT_DROP; -} - /* Length to Time (L2T) lookup in a qdisc_rate_table, to determine how long it will take to send a packet given its size. */ |