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
- Lines: 9
- Date:
2004-04-14 06:05:41.000000000 -0700
- Orig file:
linux-2.4.25/net/sched/sch_gred.c
- Orig date:
2004-02-18 05:36:32.000000000 -0800
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)