aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_api.c6
-rw-r--r--net/sched/sch_cbq.c6
-rw-r--r--net/sched/sch_hfsc.c2
-rw-r--r--net/sched/sch_htb.c4
-rw-r--r--net/sched/sch_netem.c2
-rw-r--r--net/sched/sch_tbf.c2
6 files changed, 11 insertions, 11 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index 36ac0ec81ce0..374fcbef80e8 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -473,7 +473,7 @@ static enum hrtimer_restart qdisc_watchdog(struct hrtimer *timer)
473 struct qdisc_watchdog *wd = container_of(timer, struct qdisc_watchdog, 473 struct qdisc_watchdog *wd = container_of(timer, struct qdisc_watchdog,
474 timer); 474 timer);
475 475
476 wd->qdisc->flags &= ~TCQ_F_THROTTLED; 476 qdisc_unthrottled(wd->qdisc);
477 __netif_schedule(qdisc_root(wd->qdisc)); 477 __netif_schedule(qdisc_root(wd->qdisc));
478 478
479 return HRTIMER_NORESTART; 479 return HRTIMER_NORESTART;
@@ -495,7 +495,7 @@ void qdisc_watchdog_schedule(struct qdisc_watchdog *wd, psched_time_t expires)
495 &qdisc_root_sleeping(wd->qdisc)->state)) 495 &qdisc_root_sleeping(wd->qdisc)->state))
496 return; 496 return;
497 497
498 wd->qdisc->flags |= TCQ_F_THROTTLED; 498 qdisc_throttled(wd->qdisc);
499 time = ktime_set(0, 0); 499 time = ktime_set(0, 0);
500 time = ktime_add_ns(time, PSCHED_TICKS2NS(expires)); 500 time = ktime_add_ns(time, PSCHED_TICKS2NS(expires));
501 hrtimer_start(&wd->timer, time, HRTIMER_MODE_ABS); 501 hrtimer_start(&wd->timer, time, HRTIMER_MODE_ABS);
@@ -505,7 +505,7 @@ EXPORT_SYMBOL(qdisc_watchdog_schedule);
505void qdisc_watchdog_cancel(struct qdisc_watchdog *wd) 505void qdisc_watchdog_cancel(struct qdisc_watchdog *wd)
506{ 506{
507 hrtimer_cancel(&wd->timer); 507 hrtimer_cancel(&wd->timer);
508 wd->qdisc->flags &= ~TCQ_F_THROTTLED; 508 qdisc_unthrottled(wd->qdisc);
509} 509}
510EXPORT_SYMBOL(qdisc_watchdog_cancel); 510EXPORT_SYMBOL(qdisc_watchdog_cancel);
511 511
diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c
index 4aaf44c95c52..25ed522b2891 100644
--- a/net/sched/sch_cbq.c
+++ b/net/sched/sch_cbq.c
@@ -351,7 +351,7 @@ cbq_mark_toplevel(struct cbq_sched_data *q, struct cbq_class *cl)
351{ 351{
352 int toplevel = q->toplevel; 352 int toplevel = q->toplevel;
353 353
354 if (toplevel > cl->level && !(cl->q->flags & TCQ_F_THROTTLED)) { 354 if (toplevel > cl->level && !(qdisc_is_throttled(cl->q))) {
355 psched_time_t now; 355 psched_time_t now;
356 psched_tdiff_t incr; 356 psched_tdiff_t incr;
357 357
@@ -625,7 +625,7 @@ static enum hrtimer_restart cbq_undelay(struct hrtimer *timer)
625 hrtimer_start(&q->delay_timer, time, HRTIMER_MODE_ABS); 625 hrtimer_start(&q->delay_timer, time, HRTIMER_MODE_ABS);
626 } 626 }
627 627
628 sch->flags &= ~TCQ_F_THROTTLED; 628 qdisc_unthrottled(sch);
629 __netif_schedule(qdisc_root(sch)); 629 __netif_schedule(qdisc_root(sch));
630 return HRTIMER_NORESTART; 630 return HRTIMER_NORESTART;
631} 631}
@@ -974,7 +974,7 @@ cbq_dequeue(struct Qdisc *sch)
974 skb = cbq_dequeue_1(sch); 974 skb = cbq_dequeue_1(sch);
975 if (skb) { 975 if (skb) {
976 sch->q.qlen--; 976 sch->q.qlen--;
977 sch->flags &= ~TCQ_F_THROTTLED; 977 qdisc_unthrottled(sch);
978 return skb; 978 return skb;
979 } 979 }
980 980
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c
index dea4009615f9..b632d9251913 100644
--- a/net/sched/sch_hfsc.c
+++ b/net/sched/sch_hfsc.c
@@ -1664,7 +1664,7 @@ hfsc_dequeue(struct Qdisc *sch)
1664 set_passive(cl); 1664 set_passive(cl);
1665 } 1665 }
1666 1666
1667 sch->flags &= ~TCQ_F_THROTTLED; 1667 qdisc_unthrottled(sch);
1668 sch->q.qlen--; 1668 sch->q.qlen--;
1669 1669
1670 return skb; 1670 return skb;
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index 3e86fd3a1b78..39db75cd8c17 100644
--- a/net/sched/sch_htb.c
+++ b/net/sched/sch_htb.c
@@ -865,7 +865,7 @@ static struct sk_buff *htb_dequeue(struct Qdisc *sch)
865 /* try to dequeue direct packets as high prio (!) to minimize cpu work */ 865 /* try to dequeue direct packets as high prio (!) to minimize cpu work */
866 skb = __skb_dequeue(&q->direct_queue); 866 skb = __skb_dequeue(&q->direct_queue);
867 if (skb != NULL) { 867 if (skb != NULL) {
868 sch->flags &= ~TCQ_F_THROTTLED; 868 qdisc_unthrottled(sch);
869 sch->q.qlen--; 869 sch->q.qlen--;
870 return skb; 870 return skb;
871 } 871 }
@@ -901,7 +901,7 @@ static struct sk_buff *htb_dequeue(struct Qdisc *sch)
901 skb = htb_dequeue_tree(q, prio, level); 901 skb = htb_dequeue_tree(q, prio, level);
902 if (likely(skb != NULL)) { 902 if (likely(skb != NULL)) {
903 sch->q.qlen--; 903 sch->q.qlen--;
904 sch->flags &= ~TCQ_F_THROTTLED; 904 qdisc_unthrottled(sch);
905 goto fin; 905 goto fin;
906 } 906 }
907 } 907 }
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c
index c2bbbe60d544..c26ef3614f7e 100644
--- a/net/sched/sch_netem.c
+++ b/net/sched/sch_netem.c
@@ -266,7 +266,7 @@ static struct sk_buff *netem_dequeue(struct Qdisc *sch)
266 struct netem_sched_data *q = qdisc_priv(sch); 266 struct netem_sched_data *q = qdisc_priv(sch);
267 struct sk_buff *skb; 267 struct sk_buff *skb;
268 268
269 if (sch->flags & TCQ_F_THROTTLED) 269 if (qdisc_is_throttled(sch))
270 return NULL; 270 return NULL;
271 271
272 skb = q->qdisc->ops->peek(q->qdisc); 272 skb = q->qdisc->ops->peek(q->qdisc);
diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c
index 475edfb69c22..86c016696977 100644
--- a/net/sched/sch_tbf.c
+++ b/net/sched/sch_tbf.c
@@ -185,7 +185,7 @@ static struct sk_buff *tbf_dequeue(struct Qdisc *sch)
185 q->tokens = toks; 185 q->tokens = toks;
186 q->ptokens = ptoks; 186 q->ptokens = ptoks;
187 sch->q.qlen--; 187 sch->q.qlen--;
188 sch->flags &= ~TCQ_F_THROTTLED; 188 qdisc_unthrottled(sch);
189 return skb; 189 return skb;
190 } 190 }
191 191