aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_atm.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_atm.c')
-rw-r--r--net/sched/sch_atm.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/net/sched/sch_atm.c b/net/sched/sch_atm.c
index f9eac0818d18..2ee0c1a8efa9 100644
--- a/net/sched/sch_atm.c
+++ b/net/sched/sch_atm.c
@@ -480,11 +480,14 @@ static void sch_atm_dequeue(unsigned long data)
480 * If traffic is properly shaped, this won't generate nasty 480 * If traffic is properly shaped, this won't generate nasty
481 * little bursts. Otherwise, it may ... (but that's okay) 481 * little bursts. Otherwise, it may ... (but that's okay)
482 */ 482 */
483 while ((skb = flow->q->dequeue(flow->q))) { 483 while ((skb = flow->q->ops->peek(flow->q))) {
484 if (!atm_may_send(flow->vcc, skb->truesize)) { 484 if (!atm_may_send(flow->vcc, skb->truesize))
485 (void)flow->q->ops->requeue(skb, flow->q);
486 break; 485 break;
487 } 486
487 skb = flow->q->dequeue(flow->q);
488 if (unlikely(!skb))
489 break;
490
488 pr_debug("atm_tc_dequeue: sending on class %p\n", flow); 491 pr_debug("atm_tc_dequeue: sending on class %p\n", flow);
489 /* remove any LL header somebody else has attached */ 492 /* remove any LL header somebody else has attached */
490 skb_pull(skb, skb_network_offset(skb)); 493 skb_pull(skb, skb_network_offset(skb));