From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Mueller Date: Tue, 09 May 2006 22:19:49 +0000 Subject: Re: [LARTC] tc del class not working Message-Id: <20060509221949.GB3892@lintera> MIME-Version: 1 Content-Type: multipart/mixed; boundary="i0/AhcQY5QxfSsSZ" List-Id: References: <0633E0EDB4F25F43A2D7179CA11FAFAB25530F@xavier.staff.greatlakes.net> In-Reply-To: <0633E0EDB4F25F43A2D7179CA11FAFAB25530F@xavier.staff.greatlakes.net> To: lartc@vger.kernel.org --i0/AhcQY5QxfSsSZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I allways forget attachments. ;) --i0/AhcQY5QxfSsSZ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="sch_hfsc.patch" --- linux/net/sched/sch_hfsc.c~ 2006-01-15 07:16:02.000000000 +0100 +++ linux/net/sched/sch_hfsc.c 2006-05-10 00:07:07.000000000 +0200 @@ -970,14 +970,15 @@ { struct hfsc_class *p; unsigned int level; - + int adj = 0; do { level = 0; list_for_each_entry(p, &cl->children, siblings) { if (p->level > level) level = p->level; + adj = 1; } - cl->level = level + 1; + cl->level = level + adj; } while ((cl = cl->cl_parent) != NULL); } --i0/AhcQY5QxfSsSZ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --i0/AhcQY5QxfSsSZ--