diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-06-02 06:23:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-02 06:23:51 -0400 |
commit | bc135b23d01acf7ee926aaf75b0020c86d3869f9 (patch) | |
tree | 29b338a0c54c00880720d808f2fede7c605f516d /net/sched/sch_generic.c | |
parent | 9f26f547a587ce9015ffe495d2af604580b4b784 (diff) |
net: Define accessors to manipulate QDISC_STATE_RUNNING
Define three helpers to manipulate QDISC_STATE_RUNNIG flag, that a
second patch will move on another location.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_generic.c')
-rw-r--r-- | net/sched/sch_generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index bd1892fe4b21..37b86eab6779 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c | |||
@@ -205,7 +205,7 @@ void __qdisc_run(struct Qdisc *q) | |||
205 | } | 205 | } |
206 | } | 206 | } |
207 | 207 | ||
208 | clear_bit(__QDISC_STATE_RUNNING, &q->state); | 208 | qdisc_run_end(q); |
209 | } | 209 | } |
210 | 210 | ||
211 | unsigned long dev_trans_start(struct net_device *dev) | 211 | unsigned long dev_trans_start(struct net_device *dev) |
@@ -797,7 +797,7 @@ static bool some_qdisc_is_busy(struct net_device *dev) | |||
797 | 797 | ||
798 | spin_lock_bh(root_lock); | 798 | spin_lock_bh(root_lock); |
799 | 799 | ||
800 | val = (test_bit(__QDISC_STATE_RUNNING, &q->state) || | 800 | val = (qdisc_is_running(q) || |
801 | test_bit(__QDISC_STATE_SCHED, &q->state)); | 801 | test_bit(__QDISC_STATE_SCHED, &q->state)); |
802 | 802 | ||
803 | spin_unlock_bh(root_lock); | 803 | spin_unlock_bh(root_lock); |