diff options
Diffstat (limited to 'net/sched/sch_tbf.c')
-rw-r--r-- | net/sched/sch_tbf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c index 61fdc77a48d2..435076cf620e 100644 --- a/net/sched/sch_tbf.c +++ b/net/sched/sch_tbf.c | |||
@@ -192,7 +192,7 @@ static struct sk_buff *tbf_dequeue(struct Qdisc* sch) | |||
192 | toks -= L2T(q, len); | 192 | toks -= L2T(q, len); |
193 | 193 | ||
194 | if ((toks|ptoks) >= 0) { | 194 | if ((toks|ptoks) >= 0) { |
195 | skb = q->qdisc->dequeue(q->qdisc); | 195 | skb = qdisc_dequeue_peeked(q->qdisc); |
196 | if (unlikely(!skb)) | 196 | if (unlikely(!skb)) |
197 | return NULL; | 197 | return NULL; |
198 | 198 | ||
@@ -467,6 +467,7 @@ static struct Qdisc_ops tbf_qdisc_ops __read_mostly = { | |||
467 | .priv_size = sizeof(struct tbf_sched_data), | 467 | .priv_size = sizeof(struct tbf_sched_data), |
468 | .enqueue = tbf_enqueue, | 468 | .enqueue = tbf_enqueue, |
469 | .dequeue = tbf_dequeue, | 469 | .dequeue = tbf_dequeue, |
470 | .peek = qdisc_peek_dequeued, | ||
470 | .requeue = tbf_requeue, | 471 | .requeue = tbf_requeue, |
471 | .drop = tbf_drop, | 472 | .drop = tbf_drop, |
472 | .init = tbf_init, | 473 | .init = tbf_init, |