Subject: [PATCH 05/14] sch_tbf: Use ->requeue queue instead of ops.

From: Jarek Poplawski <[email-masked]>
Date: Tue, 14 Oct 2008 09:54:02 +0000

-------- Original Message --------
Subject: [PATCH 6/9]: sch_tbf: Use ->requeue queue instead of ops.
Date: Mon, 18 Aug 2008 01:37:08 -0700 (PDT)
From: David Miller <[email-masked]>

--------------------->
From: David Miller <[email-masked]>
sch_tbf: Use ->requeue queue instead of ops.

Signed-off-by: Jarek Poplawski <[email-masked]>
---
 net/sched/sch_tbf.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c
index a99529d..e98aeb9 100644
--- a/net/sched/sch_tbf.c
+++ b/net/sched/sch_tbf.c
@@ -214,12 +214,7 @@ static struct sk_buff *tbf_dequeue(struct Qdisc* sch)
 		   (cf. CSZ, HPFQ, HFSC)
 		 */
 
-		if (q->qdisc->ops->requeue(skb, q->qdisc) != NET_XMIT_SUCCESS) {
-			/* When requeue fails skb is dropped */
-			qdisc_tree_decrease_qlen(q->qdisc, 1);
-			sch->qstats.drops++;
-		}
-
+		__skb_queue_tail(&q->qdisc->requeue, skb);
 		sch->qstats.overlimits++;
 	}
 	return NULL;
-- 
1.5.6.5