patch-2.4.22 linux-2.4.22/net/sched/sch_prio.c
Next file: linux-2.4.22/net/sched/sch_red.c
Previous file: linux-2.4.22/net/sched/sch_ingress.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
2003-08-25 04:44:44.000000000 -0700
- Orig file:
linux-2.4.21/net/sched/sch_prio.c
- Orig date:
2003-06-13 07:51:39.000000000 -0700
diff -urN linux-2.4.21/net/sched/sch_prio.c linux-2.4.22/net/sched/sch_prio.c
@@ -124,18 +124,18 @@
}
-static int
-prio_drop(struct Qdisc* sch)
+static unsigned int prio_drop(struct Qdisc* sch)
{
struct prio_sched_data *q = (struct prio_sched_data *)sch->data;
int prio;
+ unsigned int len;
struct Qdisc *qdisc;
for (prio = q->bands-1; prio >= 0; prio--) {
qdisc = q->queues[prio];
- if (qdisc->ops->drop(qdisc)) {
+ if ((len = qdisc->ops->drop(qdisc)) != 0) {
sch->q.qlen--;
- 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)