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

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

diff -urN linux-2.4.24/net/sched/sch_dsmark.c linux-2.4.25/net/sched/sch_dsmark.c
@@ -77,6 +77,7 @@
 	*old = xchg(&p->q,new);
 	if (*old)
 		qdisc_reset(*old);
+	sch->q.qlen = 0;
 	sch_tree_unlock(sch); /* @@@ move up ? */
         return 0;
 }
@@ -377,7 +378,7 @@
 	while (p->filter_list) {
 		tp = p->filter_list;
 		p->filter_list = tp->next;
-		tp->ops->destroy(tp);
+		tcf_destroy(tp);
 	}
 	qdisc_destroy(p->q);
 	p->q = &noop_qdisc;

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