diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-09 02:12:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-09 02:12:38 -0400 |
commit | eb6aafe3f843cb0e939546c03540a3b4911b6964 (patch) | |
tree | 550cfba4baadcb64f98ce6e77fe6f9b44b5bb142 /net/core/dev.c | |
parent | 86d804e10a37cd86f16bf72386c37e843a98a74b (diff) |
pkt_sched: Make qdisc_run take a netdev_queue.
This allows us to use this calling convention all the way down into
qdisc_restart().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 0dc888ad421..0218b0b9be8 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1734,7 +1734,7 @@ gso: | |||
1734 | /* reset queue_mapping to zero */ | 1734 | /* reset queue_mapping to zero */ |
1735 | skb_set_queue_mapping(skb, 0); | 1735 | skb_set_queue_mapping(skb, 0); |
1736 | rc = q->enqueue(skb, q); | 1736 | rc = q->enqueue(skb, q); |
1737 | qdisc_run(dev); | 1737 | qdisc_run(txq); |
1738 | spin_unlock(&txq->lock); | 1738 | spin_unlock(&txq->lock); |
1739 | 1739 | ||
1740 | rc = rc == NET_XMIT_BYPASS ? NET_XMIT_SUCCESS : rc; | 1740 | rc = rc == NET_XMIT_BYPASS ? NET_XMIT_SUCCESS : rc; |
@@ -1930,7 +1930,7 @@ static void net_tx_action(struct softirq_action *h) | |||
1930 | clear_bit(__LINK_STATE_SCHED, &dev->state); | 1930 | clear_bit(__LINK_STATE_SCHED, &dev->state); |
1931 | 1931 | ||
1932 | if (spin_trylock(&txq->lock)) { | 1932 | if (spin_trylock(&txq->lock)) { |
1933 | qdisc_run(dev); | 1933 | qdisc_run(txq); |
1934 | spin_unlock(&txq->lock); | 1934 | spin_unlock(&txq->lock); |
1935 | } else { | 1935 | } else { |
1936 | netif_schedule_queue(txq); | 1936 | netif_schedule_queue(txq); |