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

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

diff -urN linux-2.4.24/net/sched/sch_fifo.c linux-2.4.25/net/sched/sch_fifo.c
@@ -46,7 +46,7 @@
 {
 	struct fifo_sched_data *q = (struct fifo_sched_data *)sch->data;
 
-	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;
@@ -107,7 +107,7 @@
 {
 	struct fifo_sched_data *q = (struct fifo_sched_data *)sch->data;
 
-	if (sch->q.qlen <= q->limit) {
+	if (sch->q.qlen < q->limit) {
 		__skb_queue_tail(&sch->q, skb);
 		sch->stats.bytes += skb->len;
 		sch->stats.packets++;

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