patch-2.4.25 linux-2.4.25/net/sched/sch_prio.c

Next file: linux-2.4.25/net/sched/sch_red.c
Previous file: linux-2.4.25/net/sched/sch_ingress.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/net/sched/sch_prio.c linux-2.4.25/net/sched/sch_prio.c
@@ -162,7 +162,7 @@
 
 	while ((tp = q->filter_list) != NULL) {
 		q->filter_list = tp->next;
-		tp->ops->destroy(tp);
+		tcf_destroy(tp);
 	}
 
 	for (prio=0; prio<q->bands; prio++) {
@@ -268,6 +268,7 @@
 	sch_tree_lock(sch);
 	*old = q->queues[band];
 	q->queues[band] = new;
+	sch->q.qlen -= (*old)->q.qlen;
 	qdisc_reset(*old);
 	sch_tree_unlock(sch);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)