patch-2.4.22 linux-2.4.22/net/sched/sch_red.c
Next file: linux-2.4.22/net/sched/sch_sfq.c
Previous file: linux-2.4.22/net/sched/sch_prio.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
2003-08-25 04:44:44.000000000 -0700
- Orig file:
linux-2.4.21/net/sched/sch_red.c
- Orig date:
2001-12-21 09:42:06.000000000 -0800
diff -urN linux-2.4.21/net/sched/sch_red.c linux-2.4.22/net/sched/sch_red.c
@@ -342,19 +342,19 @@
return NULL;
}
-static int
-red_drop(struct Qdisc* sch)
+static unsigned int red_drop(struct Qdisc* sch)
{
struct sk_buff *skb;
struct red_sched_data *q = (struct red_sched_data *)sch->data;
skb = __skb_dequeue_tail(&sch->q);
if (skb) {
- sch->stats.backlog -= skb->len;
+ unsigned int len = skb->len;
+ sch->stats.backlog -= len;
sch->stats.drops++;
q->st.other++;
kfree_skb(skb);
- return 1;
+ return len;
}
PSCHED_GET_TIME(q->qidlestart);
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)