pkt_sched: Make QDISC_RUNNING a qdisc state.

Currently it is associated with a netdev_queue, but when we have
qdisc sharing that no longer makes any sense.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2008-07-16 00:56:32 -07:00
parent d3b753db7c
commit e2627c8c22
4 changed files with 19 additions and 10 deletions

View File

@@ -88,8 +88,10 @@ extern void __qdisc_run(struct netdev_queue *txq);
static inline void qdisc_run(struct netdev_queue *txq)
{
struct Qdisc *q = txq->qdisc;
if (!netif_tx_queue_stopped(txq) &&
!test_and_set_bit(__QUEUE_STATE_QDISC_RUNNING, &txq->state))
!test_and_set_bit(__QDISC_STATE_RUNNING, &q->state))
__qdisc_run(txq);
}