Displaying 20 results from an estimated 300 matches similar to: "[PATCH] (2/4) delay scheduler - retry if requeue fails"
2004 Mar 18
6
[PATCH] packet delay scheduler
Okay, here is a very simple QOS scheduler that delays packets for 2.6.
It is good for testing, and might be useful for people who want to put
some class of traffic into a "penalty box".
Alexey''s tc command is really easy to extend to new disciplines. There is
a version which knows about this scheduler at:
http://developer.osdl.org/shemminger/tcp/iproute2-delay.tar.bz2
The
2004 Jul 01
20
[PATCH 2.6] update to network emulation QOS scheduler
This patch updates the network emulation packet scheduler.
* name changed from delay to netem since it does more than just delay
* Catalin''s merged code to do packet reordering
* uses a socket queue''s directly rather than layering on qdisc(fifo)
because this is used in performance tests.
* adds placeholder in API for future enhancements (rate and duplicate).
2004 Jun 17
2
[PATCH] (3/4) delay scheduler race with device stopped
The delay scheduler dequeue routine has some code cut&pasted from the TBF scheduler
that caused a race with E1000 when ring got full.
It looks like net schedulers should never be calling netif_queue_stopped because
the queue may get unstopped by interrrupt or receive soft irq (NAPI) which races
with the dequeue in the transmit scheduler.
Also, if requeuing the packet fails, it is probably
2004 Jun 17
1
[PATCH] (4/4) add loss option to network delay scheduler
This enhances the network simulation scheduler to do simple random loss.
The loss parameter is a simple 32 bit value such that 0 means no loss, and
0xffffffff is always drop. I have a new version of the tc command which takes
care of conversion from percent to this value.
Same patch for 2.4 and 2.6
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
diff -Nru
2004 Jun 22
3
[ANNOUNCE] sch_ooo - Out-of-order packet queue discipline
Hello!
I like to announce sch_ooo, a new queue discipline that, attached to a
class (or a device, as root) reorder the packets that pass by delaying
some.
Example:
tc qdisc add dev eth0 root ooo limit 100 gap 4 wait 1100
This queue will create a pfifo with limit 100 and will delay
every 4th packet with 1100ms.
An stream of 6 packets like this: 1 2 3 4 5 6, generated by
ping will be reordered
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 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;
2018 Jul 31
0
[PATCH net-next 2/2] virtio-net: get rid of unnecessary container of rq stats
We don't maintain tx counters in rx stats any more. There's no need
for an extra container of rq stats.
Cc: Toshiaki Makita <makita.toshiaki at lab.ntt.co.jp>
Signed-off-by: Jason Wang <jasowang at redhat.com>
---
drivers/net/virtio_net.c | 80 ++++++++++++++++++++++--------------------------
1 file changed, 36 insertions(+), 44 deletions(-)
diff --git
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
2004 Jun 18
1
Help:how to generate different packets?souce code explanation?
Hi,All
I setup traffic control configuration with HTB this way:
1: root HTB qdisc
|
1:1 HTB class rate 1024kbit
|
/-----+-----+-----+------+-----\
1:10 1:20 1:30 1:40 1:50 1:60
EF AF41 AF31 AF21 AF11 BE
and alloct different bandwidth to these PHBs(queues).So which tool would I use to generate these packets at the same to for
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:
2002 Jun 08
2
New qdisc path, try it (what is the problem)
hello,
this is my new qdisc patch, when i recompile the
kernel with this patch i dn''nt succeed please look at
it and if there are any mistakes plesease send me a
mail
thanks in advance
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
2023 Mar 22
1
[PATCH net-next 7/8] virtio_net: introduce receive_mergeable_xdp()
The purpose of this patch is to simplify the receive_mergeable().
Separate all the logic of XDP into a function.
Signed-off-by: Xuan Zhuo <xuanzhuo at linux.alibaba.com>
---
drivers/net/virtio_net.c | 128 +++++++++++++++++++++++----------------
1 file changed, 76 insertions(+), 52 deletions(-)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index
2023 Mar 28
1
[PATCH net-next 5/8] virtio_net: separate the logic of freeing the rest mergeable buf
This patch introduce a new function that frees the rest mergeable buf.
The subsequent patch will reuse this function.
Signed-off-by: Xuan Zhuo <xuanzhuo at linux.alibaba.com>
---
drivers/net/virtio_net.c | 36 ++++++++++++++++++++++++------------
1 file changed, 24 insertions(+), 12 deletions(-)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index
2005 Feb 03
0
Kernel panic when using wrr qd
For some time now im trying to get to know what causes such
configuration of QOS (kernel 2.4.25-2.4.28 + IMQ patch and ofcourse wrr):
--
WRR_MAX_CLASSES=200
DEV_IN=imq0
ifconfig $DEV_IN down
ifconfig $DEV_IN up
tc qdisc add dev ${DEV_IN} handle 1:0 root htb default 10
tc class add dev ${DEV_IN} parent 1:0 classid 1:10 htb rate 1000kbit burst
1kbit prio 1
tc qdisc add dev ${DEV_IN} parent 1:10
2023 Mar 30
1
[PATCH net-next 7/8] virtio_net: introduce receive_mergeable_xdp()
Hi,
On Tue, 2023-03-28 at 20:04 +0800, Xuan Zhuo wrote:
> The purpose of this patch is to simplify the receive_mergeable().
> Separate all the logic of XDP into a function.
>
> Signed-off-by: Xuan Zhuo <xuanzhuo at linux.alibaba.com>
> ---
> drivers/net/virtio_net.c | 128 +++++++++++++++++++++++----------------
> 1 file changed, 76 insertions(+), 52 deletions(-)
>
2005 May 13
1
Qdisc requeue should be void?
There is an design problem with the qdisc interface that causes qlen related bugs
in netem, tbf, and other qdisc''s that peek at the top of the queue. The problem is
that requeue needs to be called from the dequeue function but requeue can fail.
If requeue fails, then the calling qdisc can not properly handle the error. If it
returns NULL, then the parent''s expectation about qlen
2018 Jan 12
0
[RFC PATCH net-next v2 2/2] virtio_net: Extend virtio to use VF datapath when available
This patch enables virtio_net to switch over to a VF datapath when a VF
netdev is present with the same MAC address. The VF datapath is only used
for unicast traffic. Broadcasts/multicasts go via virtio datapath so that
east-west broadcasts don't use the PCI bandwidth. It allows live migration
of a VM with a direct attached VF without the need to setup a bond/team
between a VF and virtio net
2018 Jul 31
8
[PATCH net-next 1/2] virtio-net: correctly update XDP_TX counters
Commit 5b8f3c8d30a6 ("virtio_net: Add XDP related stats") tries to
count TX XDP stats in virtnet_receive(). This will cause several
issues:
- virtnet_xdp_sq() was called without checking whether or not XDP is
set. This may cause out of bound access when there's no enough txq
for XDP.
- Stats were updated even if there's no XDP/XDP_TX.
Fixing this by reusing
2018 Jul 31
8
[PATCH net-next 1/2] virtio-net: correctly update XDP_TX counters
Commit 5b8f3c8d30a6 ("virtio_net: Add XDP related stats") tries to
count TX XDP stats in virtnet_receive(). This will cause several
issues:
- virtnet_xdp_sq() was called without checking whether or not XDP is
set. This may cause out of bound access when there's no enough txq
for XDP.
- Stats were updated even if there's no XDP/XDP_TX.
Fixing this by reusing