search for: sch_delay

Displaying 9 results from an estimated 9 matches for "sch_delay".

2004 Jun 17
2
[PATCH] (1/4) delay scheduler enqueue always succeeds.
If underlying fifo enqueue fails, return the status not 0. Same patch should apply to both 2.6 and 2.4 Signed-off-by: Stephen Hemminger <shemminger@osdl.org> diff -Nru a/net/sched/sch_delay.c b/net/sched/sch_delay.c --- a/net/sched/sch_delay.c 2004-06-17 15:13:15 -07:00 +++ b/net/sched/sch_delay.c 2004-06-17 15:13:15 -07:00 @@ -69,7 +69,7 @@ sch->stats.bytes += skb->len; sch->stats.packets++; } - return 0; + return ret; } /* Requeue packets but don''t chan...
2004 Mar 18
6
[PATCH] packet delay scheduler
...limit; +}; #endif diff -Nru a/net/sched/Kconfig b/net/sched/Kconfig --- a/net/sched/Kconfig Thu Mar 18 12:04:02 2004 +++ b/net/sched/Kconfig Thu Mar 18 12:04:02 2004 @@ -164,6 +164,17 @@ To compile this code as a module, choose M here: the module will be called sch_dsmark. +config NET_SCH_DELAY + tristate "Delay simulator" + depends on NET_SCHED + help + Say Y if you want to delay packets by a fixed amount of + time. This is often useful to simulate network delay when + testing applications or protocols. + + To compile this driver as a module, choose M here: the module +...
2004 Jun 17
1
[PATCH] (4/4) add loss option to network delay scheduler
...> diff -Nru a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h --- a/include/linux/pkt_sched.h 2004-06-17 15:26:51 -07:00 +++ b/include/linux/pkt_sched.h 2004-06-17 15:26:51 -07:00 @@ -437,5 +437,6 @@ { __u32 latency; __u32 limit; -}; + __u32 loss; +}; #endif diff -Nru a/net/sched/sch_delay.c b/net/sched/sch_delay.c --- a/net/sched/sch_delay.c 2004-06-17 15:26:51 -07:00 +++ b/net/sched/sch_delay.c 2004-06-17 15:26:51 -07:00 @@ -40,6 +40,7 @@ struct dly_sched_data { u32 latency; u32 limit; + u32 loss; struct timer_list timer; struct Qdisc *qdisc; }; @@ -58,6 +59,12 @@ struc...
2004 Jun 17
1
[PATCH] (2/4) delay scheduler - retry if requeue fails
If delay scheduler decides not to send the packet right away, it requeues it. If the requeue fails, it should go and look again rather than waking up prematurely. Same patch should apply to both 2.6 and 2.4 Signed-off-by: Stephen Hemminger <shemminger@osdl.org> diff -Nru a/net/sched/sch_delay.c b/net/sched/sch_delay.c --- a/net/sched/sch_delay.c 2004-06-17 15:19:07 -07:00 +++ b/net/sched/sch_delay.c 2004-06-17 15:19:07 -07:00 @@ -104,8 +104,10 @@ static struct sk_buff *dly_dequeue(struct Qdisc *sch) { struct dly_sched_data *q = (struct dly_sched_data *)sch->data; - struct sk_buff...
2004 Jun 17
2
[PATCH] (3/4) delay scheduler race with device stopped
...cheduler. Also, if requeuing the packet fails, it is probably because the queue became full by a racing enqueue. So the right thing to do is to go back and try again. Same patch should apply to both 2.6 and 2.4 Signed-off-by: Stephen Hemminger <shemminger@osdl.org> diff -Nru a/net/sched/sch_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_G...
2004 Aug 31
1
netem usage example
I''m trying to setup a netem delay with no luck (using iproute2-2.6.8, compilation broke during arpd compile, so I use the tc binary in the tc/ subdir, there''s also a q_netem.so there). kernel is 2.6.8.1, compile with CPU cycle counter as time reference. I was using sch_delay of 2.6.7 happily with something like: tc qdisc add dev eth0 root 1: delay latency 1ms rate 35M now I use: tc qdisc add dev eth0 root netem latency 1ms and it complain about "unknown qdisc netem" do you have usage example with the new netem "scheduler"? thanks _________________...
2004 Jul 01
20
[PATCH 2.6] update to network emulation QOS scheduler
...ed/Kconfig --- linux-2.6/net/sched/Kconfig 2004-06-25 09:41:00.000000000 -0700 +++ sched-2.6/net/sched/Kconfig 2004-06-28 09:17:19.000000000 -0700 @@ -164,12 +164,12 @@ config NET_SCH_DSMARK To compile this code as a module, choose M here: the module will be called sch_dsmark. -config NET_SCH_DELAY - tristate "Delay simulator" +config NET_SCH_NETEM + tristate "Network emulator" depends on NET_SCHED help - Say Y if you want to delay packets by a fixed amount of - time. This is often useful to simulate network delay when + Say Y if you want to emulate network delay...
2004 Jul 01
3
Using Token Bucket Filter to simulate a low bandwidth radio link
Hello, I am attempting to use the LARTC traffic control to simulate a radio link that has variable bandwidth and availability. The basic bandwidth could be as low as 500 bits/sec but will generally be about 4000 bits/sec. If the simulated radio link is unavailable (zero bandwidth) then packets should be queued until a link is re-established. i.e. Initial bandwidth is 5000bits/sec then to 0
2004 Jun 22
3
[ANNOUNCE] sch_ooo - Out-of-order packet queue discipline
...ase include it. Any comments are appreciated. Thanks! P.S. The homepage is at http://kernel.umbrella.ro/ P.P.S. The license is GPL. --- linux.orig/net/sched/Kconfig 2004-06-16 08:19:52.000000000 +0300 +++ linux/net/sched/Kconfig 2004-06-22 15:03:11.000000000 +0300 @@ -175,6 +175,17 @@ config NET_SCH_DELAY To compile this driver as a module, choose M here: the module will be called sch_delay. +config NET_SCH_OOO + tristate "Out-of-order qdisc discipline" + depends on NET_SCHED + help + Say Y if you want to simulate out-of-order packets by delaying + some of them. This qdisc i...