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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user