1. 04 Aug, 2006 1 commit
    • Ilpo Järvinen's avatar
      [PKT_SCHED] RED: Fix overflow in calculation of queue average · c4c0ce5c
      Ilpo Järvinen authored
      Overflow can occur very easily with 32 bits, e.g., with 1 second
      us_idle is approx. 2^20, which leaves only 11-Wlog bits for queue
      length. Since the EWMA exponent is typically around 9, queue
      lengths larger than 2^2 cause overflow. Whether the affected
      branch is taken when us_idle is as high as 1 second, depends on
      Scell_log, but with rather reasonable configuration Scell_log is
      large enough to cause p->Stab to have zero index, which always
      results zero shift (typically also few other small indices result
      in zero shift).
      Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  2. 26 Apr, 2006 1 commit
  3. 05 Nov, 2005 1 commit
    • Thomas Graf's avatar
      [PKT_SCHED]: Generic RED layer · a7834745
      Thomas Graf authored
      Extracts the RED algorithm from sch_red.c and puts it into include/net/red.h
      for use by other RED based modules. The statistics are extended to be more
      fine grained in order to differ between probability/forced marks/drops.
      We now reset the average queue length when setting new parameters, leaving
      it might result in an unreasonable qavg for a while depending on the value of W.
      Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@mandriva.com>