]> git.hungrycats.org Git - linux/commitdiff
[NET SCHED]: Reset q.qlen in tbf_reset instead of purging an unused queue.
authorPatrick McHardy <kaber@trash.net>
Tue, 18 Nov 2003 09:29:06 +0000 (01:29 -0800)
committerPatrick McHardy <kaber@coreworks.de>
Tue, 18 Nov 2003 09:29:06 +0000 (01:29 -0800)
Problem introduced by cset 1.1046.1.318

net/sched/sch_tbf.c

index 3fe6f4f37c7c3674b233fbf0aa371a83f3a8c7d8..e176e96564e79493a4bfc1f9c6e15a81f9e04d8f 100644 (file)
@@ -268,7 +268,7 @@ static void tbf_reset(struct Qdisc* sch)
        struct tbf_sched_data *q = (struct tbf_sched_data *)sch->data;
 
        qdisc_reset(q->qdisc);
-       skb_queue_purge(&sch->q);
+       sch->q.qlen = 0;
        sch->stats.backlog = 0;
        PSCHED_GET_TIME(q->t_c);
        q->tokens = q->buffer;