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
- Lines: 21
- Date:
2003-08-25 04:44:44.000000000 -0700
- Orig file:
linux-2.4.21/net/sched/sch_fifo.c
- Orig date:
2001-12-21 09:42:06.000000000 -0800
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)