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

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

diff -urN linux-2.4.24/net/sched/sch_red.c linux-2.4.25/net/sched/sch_red.c
@@ -257,7 +257,7 @@
 	if (q->qave < q->qth_min) {
 		q->qcount = -1;
 enqueue:
-		if (sch->stats.backlog <= q->limit) {
+		if (sch->stats.backlog + skb->len <= q->limit) {
 			__skb_queue_tail(&sch->q, skb);
 			sch->stats.backlog += skb->len;
 			sch->stats.bytes += skb->len;

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