Ilpo Järvinen
c4c0ce5c57
[PKT_SCHED] RED: Fix overflow in calculation of queue average
...
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: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-08-04 22:59:51 -07:00
..
2006-07-03 19:54:02 -07:00
2006-07-02 13:58:51 -07:00
2006-06-20 15:10:08 -07:00
2006-07-21 14:49:25 -07:00
2006-03-22 13:56:56 -08:00
2006-06-25 23:38:29 -07:00
2006-01-09 14:16:08 -08:00
2005-05-19 12:42:39 -07:00
2006-04-26 12:56:16 +01:00
2006-08-02 14:12:06 -07:00
2005-04-16 15:20:36 -07:00
2006-04-14 15:00:20 -07:00
2006-01-03 13:11:21 -08:00
2006-07-03 19:30:18 -07:00
2005-04-16 15:20:36 -07:00
2006-06-20 15:10:08 -07:00
2005-08-29 15:32:25 -07:00
2006-03-20 22:42:39 -08:00
2006-03-20 22:42:39 -08:00
2006-03-20 22:42:39 -08:00
2006-03-20 22:42:39 -08:00
2006-03-20 22:42:39 -08:00
2006-03-20 22:42:39 -08:00
2005-04-16 15:20:36 -07:00
2006-04-26 12:56:16 +01:00
2005-04-16 15:20:36 -07:00
2006-03-20 22:42:39 -08:00
2005-04-16 15:20:36 -07:00
2006-07-14 21:53:56 -07:00
2006-04-26 12:56:16 +01:00
2006-01-27 17:08:07 -05:00
2005-09-21 23:03:55 -04:00
2006-06-15 15:48:13 -04:00
2006-04-24 16:15:58 -04:00
2006-07-05 13:42:58 -04:00
2006-03-20 16:54:09 -08:00
2006-01-03 13:10:46 -08:00
2006-04-26 12:56:16 +01:00
2006-01-03 13:11:15 -08:00
2006-03-20 22:46:16 -08:00
2006-01-03 13:11:21 -08:00
2006-04-26 12:56:16 +01:00
2006-04-26 12:56:16 +01:00
2006-05-06 19:59:18 +01:00
2006-01-03 13:10:31 -08:00
2005-04-16 15:20:36 -07:00
2005-06-21 13:51:04 -07:00
2006-08-02 13:38:14 -07:00
2005-04-16 15:20:36 -07:00
2006-04-26 12:56:16 +01:00
2006-04-26 12:56:16 +01:00
2006-04-26 12:56:16 +01:00
2006-06-20 15:10:08 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-08-02 13:38:14 -07:00
2005-04-16 15:20:36 -07:00
2006-03-23 07:12:57 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-08 15:00:57 -07:00
2006-06-17 21:26:08 -07:00
2005-11-14 21:58:18 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-22 07:57:21 -03:00
2006-03-20 22:59:36 -08:00
2006-04-26 12:56:16 +01:00
2006-05-12 14:56:08 -07:00
2006-08-02 15:02:31 -07:00
2006-08-02 13:38:20 -07:00
2005-11-10 02:26:40 +01:00
2006-05-03 23:27:47 -07:00
2005-08-29 16:01:32 -07:00
2006-04-26 12:56:16 +01:00
2005-08-29 15:33:26 -07:00
2006-07-24 12:44:23 -07:00
2006-07-08 13:34:56 -07:00
2005-08-29 15:32:25 -07:00
2006-06-20 15:10:08 -07:00
2005-08-29 15:37:22 -07:00
2006-08-04 22:59:51 -07:00
2006-03-26 17:39:55 -08:00
2006-05-03 23:28:20 -07:00
2006-04-26 12:56:16 +01:00
2006-04-26 12:56:16 +01:00
2006-08-02 14:12:06 -07:00
2005-07-05 15:12:04 -07:00
2005-06-21 18:46:13 -07:00
2006-07-03 15:27:10 -07:00
2005-09-14 08:36:54 -04:00
2006-06-30 14:12:10 -07:00
2006-01-03 13:10:57 -08:00
2006-08-02 13:38:19 -07:00
2006-01-03 13:10:54 -08:00
2006-01-03 13:10:38 -08:00
2006-01-03 13:11:21 -08:00
2006-03-22 00:01:31 -08:00
2006-04-09 22:37:18 -07:00
2006-06-17 21:28:43 -07:00