Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200876
b: refs/heads/master
c: 4ef6acf
h: refs/heads/master
v: v3
  • Loading branch information
John Fastabend authored and David S. Miller committed Jul 3, 2010
1 parent f98684b commit 483750a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ae80abdba0644e12ac17da567a2db1efc1bf8a8
refs/heads/master: 4ef6acff83222f4496ceef7d1f0ee9e50a5bb403
12 changes: 10 additions & 2 deletions trunk/include/net/sch_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,16 @@ extern void tcf_destroy_chain(struct tcf_proto **fl);
static inline void qdisc_reset_all_tx(struct net_device *dev)
{
unsigned int i;
for (i = 0; i < dev->num_tx_queues; i++)
qdisc_reset(netdev_get_tx_queue(dev, i)->qdisc);
struct Qdisc *qdisc;

for (i = 0; i < dev->num_tx_queues; i++) {
qdisc = netdev_get_tx_queue(dev, i)->qdisc;
if (qdisc) {
spin_lock_bh(qdisc_lock(qdisc));
qdisc_reset(qdisc);
spin_unlock_bh(qdisc_lock(qdisc));
}
}
}

/* Are all TX queues of the device empty? */
Expand Down

0 comments on commit 483750a

Please sign in to comment.