Displaying 6 results from an estimated 6 matches for "psched_get_time".
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 Mar 18
6
[PATCH] packet delay scheduler
...packets with underlying discipline (fifo)
+ * but mark them with current time first.
+ */
+static int dly_enqueue(struct sk_buff *skb, struct Qdisc *sch)
+{
+ struct dly_sched_data *q = (struct dly_sched_data *)sch->data;
+ struct dly_skb_cb *cb = (struct dly_skb_cb *)skb->cb;
+ int ret;
+
+ PSCHED_GET_TIME(cb->queuetime);
+
+ /* Queue to underlying scheduler */
+ ret = q->qdisc->enqueue(skb, q->qdisc);
+ if (ret)
+ sch->stats.drops++;
+ else {
+ sch->q.qlen++;
+ sch->stats.bytes += skb->len;
+ sch->stats.packets++;
+ }
+ return 0;
+}
+
+/* Requeue packets but don'...
2004 Jul 01
20
[PATCH 2.6] update to network emulation QOS scheduler
...struct dly_sched_data *)sch->data;
- struct dly_skb_cb *cb = (struct dly_skb_cb *)skb->cb;
- int ret;
-
- /* Random packet drop 0 => none, ~0 => all */
- if (q->loss >= net_random()) {
- sch->stats.drops++;
- return 0; /* lie about loss so TCP doesn''t know */
- }
-
- PSCHED_GET_TIME(cb->queuetime);
-
- /* Queue to underlying scheduler */
- ret = q->qdisc->enqueue(skb, q->qdisc);
- if (ret)
- sch->stats.drops++;
- else {
- sch->q.qlen++;
- sch->stats.bytes += skb->len;
- sch->stats.packets++;
- }
- return ret;
-}
-
-/* Requeue packets but don'...
2004 Jun 17
1
[PATCH] (4/4) add loss option to network delay scheduler
...Qdisc *qdisc;
};
@@ -58,6 +59,12 @@
struct dly_skb_cb *cb = (struct dly_skb_cb *)skb->cb;
int ret;
+ /* Random packet drop 0 => none, ~0 => all */
+ if (q->loss >= net_random()) {
+ sch->stats.drops++;
+ return 0; /* lie about loss so TCP doesn''t know */
+ }
+
PSCHED_GET_TIME(cb->queuetime);
/* Queue to underlying scheduler */
@@ -196,6 +203,7 @@
} else {
q->latency = qopt->latency;
q->limit = qopt->limit;
+ q->loss = qopt->loss;
}
return err;
}
@@ -232,6 +240,7 @@
qopt.latency = q->latency;
qopt.limit = q->limit;
+ qop...
2004 Jun 17
2
[PATCH] (3/4) delay scheduler race with device stopped
...ch_delay.c b/net/sched/sch_delay.c
--- a/net/sched/sch_delay.c 2004-06-17 15:21:49 -07:00
+++ b/net/sched/sch_delay.c 2004-06-17 15:21:49 -07:00
@@ -111,7 +111,7 @@
if (skb) {
struct dly_skb_cb *cb = (struct dly_skb_cb *)skb->cb;
psched_time_t now;
- long diff;
+ long diff, delay;
PSCHED_GET_TIME(now);
diff = q->latency - PSCHED_TDIFF(now, cb->queuetime);
@@ -128,13 +128,10 @@
goto retry;
}
- if (!netif_queue_stopped(sch->dev)) {
- long delay = PSCHED_US2JIFFIE(diff);
- if (delay <= 0)
- delay = 1;
- mod_timer(&q->timer, jiffies+delay);
- }
-
+ del...
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