Skip to contentSkip to conversation

: sch_tbf: Use ->requeue queue instead of ops.

PATCH In review David Miller 1 participant 1 message Aug 18, 2008

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 6/9 : sch_tbf: Use ->requeue queue instead of ops.

sch_tbf: Use ->requeue queue instead of ops.

---
 net/sched/sch_tbf.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
net/sched/sch_tbf.c +1 -6
index a99529d..e98aeb9 100644
@@ -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;
Signature · 1 line
1.5.6.5.GIT