patch-2.4.22 linux-2.4.22/net/sched/sch_dsmark.c
Next file: linux-2.4.22/net/sched/sch_fifo.c
Previous file: linux-2.4.22/net/sched/sch_csz.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_dsmark.c
- Orig date:
2001-12-21 09:42:06.000000000 -0800
diff -urN linux-2.4.21/net/sched/sch_dsmark.c linux-2.4.22/net/sched/sch_dsmark.c
@@ -301,17 +301,18 @@
}
-static int dsmark_drop(struct Qdisc *sch)
+static unsigned int dsmark_drop(struct Qdisc *sch)
{
struct dsmark_qdisc_data *p = PRIV(sch);
-
+ unsigned int len;
+
DPRINTK("dsmark_reset(sch %p,[qdisc %p])\n",sch,p);
if (!p->q->ops->drop)
return 0;
- if (!p->q->ops->drop(p->q))
+ if (!(len = p->q->ops->drop(p->q)))
return 0;
sch->q.qlen--;
- return 1;
+ return len;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)