netdev
[Top] [All Lists]

Re: [PATCH] netem: account for packets in delayed queue in qlen

To: Patrick McHardy <kaber@xxxxxxxxx>
Subject: Re: [PATCH] netem: account for packets in delayed queue in qlen
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Tue, 19 Apr 2005 11:06:39 +1000
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <42628300.9010007@trash.net>
References: <20050329152110.38d50653@dxpl.pdx.osdl.net> <4252EB9D.9070305@trash.net> <20050407120417.4297cd14@dxpl.pdx.osdl.net> <42628300.9010007@trash.net>
Sender: netdev-bounce@xxxxxxxxxxx
On Sun, 17 Apr 2005 17:38:40 +0200
Patrick McHardy <kaber@xxxxxxxxx> wrote:

> Stephen Hemminger wrote:
> > Would this work better.? It just increases qlen by +/- 1 on enqueue, 
> > dequeue.
> > It also allows < 1ms delays if there is enough traffic going through.
> 
> It looks better, but with duplication there can still be an increment
> of 2 in netem_enqueue().

There may be no sane way to do duplication without that. Other ways like 
injecting
packets again at top of queue with a thread/tasklet seem rather gross

<Prev in Thread] Current Thread [Next in Thread>