diff options
author | Eric Dumazet <edumazet@google.com> | 2016-06-10 16:41:38 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-10 23:58:21 -0700 |
commit | 42117927cab5a13192ecc227bea19da5059ffc6c (patch) | |
tree | 62af5997a0dc6ec1927e94a55d5cdbf0d9abcc0a /net/sched | |
parent | cca605dd4b3b2bfa381250b7dbbe16b124916f24 (diff) | |
download | op-kernel-dev-42117927cab5a13192ecc227bea19da5059ffc6c.zip op-kernel-dev-42117927cab5a13192ecc227bea19da5059ffc6c.tar.gz |
net_sched: netem: remove qdisc_is_throttled() use
Looks like it is only there as some optimization attempt.
Since __QDISC_STATE_THROTTLED set/unset is way too expensive,
and netem is the last user, just remove this check.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_netem.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index 9ca7947..2dbe732 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c @@ -582,9 +582,6 @@ static struct sk_buff *netem_dequeue(struct Qdisc *sch) struct sk_buff *skb; struct rb_node *p; - if (qdisc_is_throttled(sch)) - return NULL; - tfifo_dequeue: skb = __skb_dequeue(&sch->q); if (skb) { |