I allways forget attachments. ;)
--- 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); }
_______________________________________________ LARTC mailing list LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc