mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
netdev: Move atomic queue state bits into netdev_queue.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b19fa1fa91
commit
79d16385c7
3 changed files with 51 additions and 26 deletions
|
@ -91,7 +91,7 @@ static inline void qdisc_run(struct netdev_queue *txq)
|
|||
struct net_device *dev = txq->dev;
|
||||
|
||||
if (!netif_queue_stopped(dev) &&
|
||||
!test_and_set_bit(__LINK_STATE_QDISC_RUNNING, &dev->state))
|
||||
!test_and_set_bit(__QUEUE_STATE_QDISC_RUNNING, &txq->state))
|
||||
__qdisc_run(txq);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue