patch-2.4.27 linux-2.4.27/net/sched/sch_tbf.c
Next file: linux-2.4.27/net/sctp/associola.c
Previous file: linux-2.4.27/net/sched/sch_netem.c
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
2004-08-07 16:26:07.088446791 -0700
- Orig file:
linux-2.4.26/net/sched/sch_tbf.c
- Orig date:
2004-04-14 06:05:41.000000000 -0700
diff -urN linux-2.4.26/net/sched/sch_tbf.c linux-2.4.27/net/sched/sch_tbf.c
@@ -201,7 +201,7 @@
if (skb) {
psched_time_t now;
- long toks;
+ long toks, delay;
long ptoks = 0;
unsigned int len = skb->len;
@@ -229,14 +229,12 @@
return skb;
}
- if (!netif_queue_stopped(sch->dev)) {
- long delay = PSCHED_US2JIFFIE(max_t(long, -toks, -ptoks));
+ delay = PSCHED_US2JIFFIE(max_t(long, -toks, -ptoks));
- if (delay == 0)
- delay = 1;
+ if (delay == 0)
+ delay = 1;
- mod_timer(&q->wd_timer, jiffies+delay);
- }
+ mod_timer(&q->wd_timer, jiffies+delay);
/* Maybe we have a shorter packet in the queue,
which can be sent now. It sounds cool,
@@ -503,6 +501,11 @@
}
}
+static struct tcf_proto **tbf_find_tcf(struct Qdisc *sch, unsigned long cl)
+{
+ return NULL;
+}
+
static struct Qdisc_class_ops tbf_class_ops =
{
.graft = tbf_graft,
@@ -512,6 +515,7 @@
.change = tbf_change_class,
.delete = tbf_delete,
.walk = tbf_walk,
+ .tcf_chain = tbf_find_tcf,
.dump = tbf_dump_class,
};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)