patch-2.4.26 linux-2.4.26/net/sched/sch_gred.c

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

diff -urN linux-2.4.25/net/sched/sch_gred.c linux-2.4.26/net/sched/sch_gred.c
@@ -110,7 +110,7 @@
 	unsigned long	qave=0;	
 	int i=0;
 
-	if (!t->initd && skb_queue_len(&sch->q) < sch->dev->tx_queue_len) {
+	if (!t->initd && skb_queue_len(&sch->q) < (sch->dev->tx_queue_len ? : 1)) {
 		D2PRINTK("NO GRED Queues setup yet! Enqueued anyway\n");
 		goto do_enqueue;
 	}

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