Commit b55b564f authored by Patrick McHardy's avatar Patrick McHardy Committed by Patrick McHardy

[NET SCHED]: Reset q.qlen in tbf_reset instead of purging an unused queue.

Problem introduced by cset 1.1046.1.318
parent 2e60391e
...@@ -268,7 +268,7 @@ static void tbf_reset(struct Qdisc* sch) ...@@ -268,7 +268,7 @@ static void tbf_reset(struct Qdisc* sch)
struct tbf_sched_data *q = (struct tbf_sched_data *)sch->data; struct tbf_sched_data *q = (struct tbf_sched_data *)sch->data;
qdisc_reset(q->qdisc); qdisc_reset(q->qdisc);
skb_queue_purge(&sch->q); sch->q.qlen = 0;
sch->stats.backlog = 0; sch->stats.backlog = 0;
PSCHED_GET_TIME(q->t_c); PSCHED_GET_TIME(q->t_c);
q->tokens = q->buffer; q->tokens = q->buffer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment