net_sched: cbq: remove a flaky use of qdisc_is_throttled()
authorEric Dumazet <edumazet@google.com>
Fri, 10 Jun 2016 23:41:37 +0000 (16:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jun 2016 06:58:20 +0000 (23:58 -0700)
commitcca605dd4b3b2bfa381250b7dbbe16b124916f24
treea1dde5e043514772fcb539d1b76d7d2567d952de
parent8fe6a79fb8088a759b3dc57eb641fc3183ad72b8
net_sched: cbq: remove a flaky use of qdisc_is_throttled()

So far no qdisc ever unset the throttled bit at enqueue() time,
so CBQ usage of qdisc_is_throttled() was flaky.

Since __QDISC_STATE_THROTTLED set/unset is way too expensive
considering that only CBQ was eventually caring for this status,
it would make sense to implement a Qdisc ops ->is_throttled()
if we find that this is needed.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_cbq.c