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

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

diff -urN linux-2.4.21/net/sched/sch_fifo.c linux-2.4.22/net/sched/sch_fifo.c
@@ -80,16 +80,17 @@
 	return skb;
 }
 
-static int
+static unsigned int 
 fifo_drop(struct Qdisc* sch)
 {
 	struct sk_buff *skb;
 
 	skb = __skb_dequeue_tail(&sch->q);
 	if (skb) {
-		sch->stats.backlog -= skb->len;
+		unsigned int len = skb->len;
+		sch->stats.backlog -= len;
 		kfree_skb(skb);
-		return 1;
+		return len;
 	}
 	return 0;
 }

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