Re: [PATCH][NET_SCHED] Update htb rate when stats are polled.

2007-05-30 Thread Patrick McHardy
Ranjit Manomohan wrote: > On 5/26/07, Patrick McHardy <[EMAIL PROTECTED]> wrote: > >> You can use this patch as a base. It needs a bit more work >> (for example the CONFIG_NET_SCHED_ESTIMATOR ifdefs are >> unnecessary, but I've added them to remind me to clean this >> up in all schedulers), but it

Re: [PATCH][NET_SCHED] Update htb rate when stats are polled.

2007-05-29 Thread Ranjit Manomohan
On 5/26/07, Patrick McHardy <[EMAIL PROTECTED]> wrote: Patrick McHardy wrote: > Ranjit Manomohan wrote: > >>Currently the HTB rate for a class is update very slowly (once >>every 16 seconds). This patch updates the rate whenever the stats >>are requested from user space. This enables more accurat

Re: [PATCH][NET_SCHED] Update htb rate when stats are polled.

2007-05-26 Thread Patrick McHardy
Patrick McHardy wrote: > Ranjit Manomohan wrote: > >>Currently the HTB rate for a class is update very slowly (once >>every 16 seconds). This patch updates the rate whenever the stats >>are requested from user space. This enables more accurate rate >>monitoring. >> >>+/* Update packet/byte rate fo

Re: [PATCH][NET_SCHED] Update htb rate when stats are polled.

2007-05-26 Thread Patrick McHardy
Ranjit Manomohan wrote: > Currently the HTB rate for a class is update very slowly (once > every 16 seconds). This patch updates the rate whenever the stats > are requested from user space. This enables more accurate rate > monitoring. > > +/* Update packet/byte rate for a class. */ > +static void

Re: [PATCH][NET_SCHED] Update htb rate when stats are polled.

2007-05-25 Thread Ilpo Järvinen
Hi, ...couple of formatting related things, see inline comment... On Fri, 25 May 2007, Ranjit Manomohan wrote: > Currently the HTB rate for a class is update very slowly (once > every 16 seconds). This patch updates the rate whenever the stats > are requested from user space. This enables more a

[PATCH][NET_SCHED] Update htb rate when stats are polled.

2007-05-25 Thread Ranjit Manomohan
Currently the HTB rate for a class is update very slowly (once every 16 seconds). This patch updates the rate whenever the stats are requested from user space. This enables more accurate rate monitoring. Signed-off-by: Ranjit Manomohan <[EMAIL PROTECTED]> diff --git a/net/sched/sch_htb.c b/net/s