Commit 42117927 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

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: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cca605dd
...@@ -582,9 +582,6 @@ static struct sk_buff *netem_dequeue(struct Qdisc *sch) ...@@ -582,9 +582,6 @@ static struct sk_buff *netem_dequeue(struct Qdisc *sch)
struct sk_buff *skb; struct sk_buff *skb;
struct rb_node *p; struct rb_node *p;
if (qdisc_is_throttled(sch))
return NULL;
tfifo_dequeue: tfifo_dequeue:
skb = __skb_dequeue(&sch->q); skb = __skb_dequeue(&sch->q);
if (skb) { if (skb) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment