patch-2.4.3 linux/net/sched/sch_dsmark.c
Next file: linux/net/sched/sch_tbf.c
Previous file: linux/net/sched/sch_cbq.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Sun Mar 25 18:14:25 2001
- Orig file:
v2.4.2/linux/net/sched/sch_dsmark.c
- Orig date:
Wed Feb 21 18:20:50 2001
diff -u --recursive --new-file v2.4.2/linux/net/sched/sch_dsmark.c linux/net/sched/sch_dsmark.c
@@ -84,7 +84,9 @@
static struct Qdisc *dsmark_leaf(struct Qdisc *sch, unsigned long arg)
{
- return NULL;
+ struct dsmark_qdisc_data *p = PRIV(sch);
+
+ return p->q;
}
@@ -187,7 +189,7 @@
struct dsmark_qdisc_data *p = PRIV(sch);
struct tcf_result res;
int result;
- int ret;
+ int ret = NET_XMIT_POLICED;
D2PRINTK("dsmark_enqueue(skb %p,sch %p,[qdisc %p])\n",skb,sch,p);
if (p->set_tc_index) {
@@ -237,7 +239,7 @@
((ret = p->q->enqueue(skb,p->q)) != 0)) {
sch->stats.drops++;
- return 0;
+ return ret;
}
sch->stats.bytes += skb->len;
sch->stats.packets++;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)