Displaying 9 results from an estimated 9 matches for "tcq_f_throttl".
Did you mean:
tcq_f_throttled
2005 Apr 25
0
TCQ_F_THROTTLED question
Hello
Can someone explane to me how the TCQ_F_THROTTLED flag and the watchdog
function used in tbf and htb works?
To be more specific, (reading tbf code)
if there are not enough tokens, a watchdog timer will be "started" and the
TCQ_F_THROTTLED flag set.
But what happens then the time is up? where is the code reentered?
What does the fla...
2004 Mar 18
6
[PATCH] packet delay scheduler
...>dequeue(q->qdisc);
+
+ if (skb) {
+ struct dly_skb_cb *cb = (struct dly_skb_cb *)skb->cb;
+ psched_time_t now;
+ long diff;
+
+ PSCHED_GET_TIME(now);
+ diff = q->latency - PSCHED_TDIFF(now, cb->queuetime);
+
+ if (diff <= 0) {
+ sch->q.qlen--;
+ sch->flags &= ~TCQ_F_THROTTLED;
+ return skb;
+ }
+
+ if (!netif_queue_stopped(sch->dev)) {
+ long delay = PSCHED_US2JIFFIE(diff);
+ if (delay <= 0)
+ delay = 1;
+ mod_timer(&q->timer, jiffies+delay);
+ }
+
+ if (q->qdisc->ops->requeue(skb, q->qdisc) != NET_XMIT_SUCCESS) {
+ sch->q....
2005 Mar 30
5
netem with prio hangs on duplicate
hi
i tried the example given on the examples page to
duplicate selected traffic like
tc qdisc add dev eth0 root handle 1: prio
tc qdisc add dev eth0 parent 1:3 handle 3: netem
duplicate 40%
tc filter add dev eth0 protocol ip parent 1:0 prio 3
u32 match ip dst 11.0.2.2 flowid 1:3
when i ping from 11.0.2.2 to this interface my machine
hangs. the same thing works for drop or delay.
i would
2004 Jun 22
3
[ANNOUNCE] sch_ooo - Out-of-order packet queue discipline
...tokens;
+};
+
+static void ooo_timer(unsigned long arg)
+{
+ struct Qdisc *sch = (struct Qdisc *)arg;
+ struct ooo_sched_data *q = (struct ooo_sched_data *)sch->data;
+
+ DPRINTK("timer: Add a token and sched dev!\n");
+
+ /* add a token */
+ q->tokens++;
+
+ sch->flags &= ~TCQ_F_THROTTLED;
+ netif_schedule(sch->dev);
+}
+
+static int ooo_init(struct Qdisc *sch, struct rtattr *opt)
+{
+ struct ooo_sched_data *q = (struct ooo_sched_data *)sch->data;
+
+ memset (q, 0, sizeof(struct ooo_sched_data));
+
+ sch->stats.lock = &sch->dev->queue_lock;
+
+ /* init timer */...
2004 Jul 01
20
[PATCH 2.6] update to network emulation QOS scheduler
...equeue(q->qdisc);
- if (skb) {
- struct dly_skb_cb *cb = (struct dly_skb_cb *)skb->cb;
- psched_time_t now;
- long diff, delay;
-
- PSCHED_GET_TIME(now);
- diff = q->latency - PSCHED_TDIFF(now, cb->queuetime);
-
- if (diff <= 0) {
- sch->q.qlen--;
- sch->flags &= ~TCQ_F_THROTTLED;
- return skb;
- }
-
- if (q->qdisc->ops->requeue(skb, q->qdisc) != NET_XMIT_SUCCESS) {
- sch->q.qlen--;
- sch->stats.drops++;
- goto retry;
- }
-
- delay = PSCHED_US2JIFFIE(diff);
- if (delay <= 0)
- delay = 1;
- mod_timer(&q->timer, jiffies+delay);
-...
2004 Jun 17
1
[PATCH] (2/4) delay scheduler - retry if requeue fails
...v)) {
long delay = PSCHED_US2JIFFIE(diff);
if (delay <= 0)
@@ -127,10 +135,6 @@
mod_timer(&q->timer, jiffies+delay);
}
- if (q->qdisc->ops->requeue(skb, q->qdisc) != NET_XMIT_SUCCESS) {
- sch->q.qlen--;
- sch->stats.drops++;
- }
sch->flags |= TCQ_F_THROTTLED;
}
return NULL;
2003 Jun 10
0
throttling token bucket
Hi,
i have a question about throttling a token bucket.
As far as i understand, if there not enough tokens to dequeue a packet from
the queue, a watchdog timer will be started and the TCQ_F_THROTTLED flag will
be set. But what exactly are the consequences of setting this flag. As far
as i can see, it neither prevents the enqeueing nor the deqeueing of packets
in both functions of the token bucket implementation. I think, dequeuing of
packets will not be possible, if there are not enough token...
2004 Jun 17
2
[PATCH] (3/4) delay scheduler race with device stopped
..._stopped(sch->dev)) {
- long delay = PSCHED_US2JIFFIE(diff);
- if (delay <= 0)
- delay = 1;
- mod_timer(&q->timer, jiffies+delay);
- }
-
+ delay = PSCHED_US2JIFFIE(diff);
+ if (delay <= 0)
+ delay = 1;
+ mod_timer(&q->timer, jiffies+delay);
sch->flags |= TCQ_F_THROTTLED;
}
return NULL;
2006 Aug 02
10
[PATCH 0/6] htb: cleanup
The HTB scheduler code is a mess, this patch set does some basic
house cleaning. The first four should cause no code change, but the
last two need more testing.
--
Stephen Hemminger <shemminger@osdl.org>
"And in the Packet there writ down that doome"
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to