netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]: Fix tbf_reset
@ 2003-11-13 14:47 Patrick McHardy
  2003-11-19  1:25 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick McHardy @ 2003-11-13 14:47 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

[-- Attachment #1: Type: text/plain, Size: 211 bytes --]

This patch fixes TBF purging an unused queue in tbf_reset instead
of resetting q.qlen. I haven't checked the history, but it looks
like this place was forgotten when making TBF classful.

Best regards,
Patrick


[-- Attachment #2: 02-tbf_reset.diff --]
[-- Type: text/plain, Size: 939 bytes --]

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1428  -> 1.1429 
#	 net/sched/sch_tbf.c	1.11    -> 1.12   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/11/12	kaber@trash.net	1.1429
# Reset q.qlen in tbf_reset instead of purging an unused queue
# --------------------------------------------
#
diff -Nru a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c
--- a/net/sched/sch_tbf.c	Thu Nov 13 14:57:27 2003
+++ b/net/sched/sch_tbf.c	Thu Nov 13 14:57:27 2003
@@ -268,7 +268,7 @@
 	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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-19  1:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-13 14:47 [PATCH]: Fix tbf_reset Patrick McHardy
2003-11-19  1:25 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).