patch-2.2.4 linux/net/sched/sch_red.c

Next file: linux/net/sched/sch_sfq.c
Previous file: linux/net/sched/sch_prio.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.3/linux/net/sched/sch_red.c linux/net/sched/sch_red.c
@@ -193,8 +193,8 @@
 	}
 
 	if (q->qave < q->qth_min) {
-enqueue:
 		q->qcount = -1;
+enqueue:
 		if (sch->stats.backlog <= q->limit) {
 			__skb_queue_tail(&sch->q, skb);
 			sch->stats.backlog += skb->len;
@@ -231,6 +231,7 @@
 		 */
 		if (((q->qave - q->qth_min)>>q->Wlog)*q->qcount < q->qR)
 			goto enqueue;
+printk(KERN_DEBUG "Drop %d\n", q->qcount);
 		q->qcount = 0;
 		q->qR = net_random()&q->Rmask;
 		sch->stats.overlimits++;
@@ -375,6 +376,7 @@
 	red_init,
 	red_reset,
 	red_destroy,
+	NULL /* red_change */,
 
 #ifdef CONFIG_RTNETLINK
 	red_dump,

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