Nicolas Dichtel
bc9259a8ba
inetpeer: fix token initialization
...
When jiffies wraps around (for example, 5 minutes after the boot, see
INITIAL_JIFFIES) and peer has just been created, now - peer->rate_last can be
< XRLIM_BURST_FACTOR * timeout, so token is not set to the maximum value, thus
some icmp packets can be unexpectedly dropped.
Fix this case by initializing last_rate to 60 seconds in the past.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-09-27 19:27:39 -04:00
..
2012-07-10 23:13:45 -07:00
2012-05-15 20:23:16 -04:00
2012-08-14 14:33:32 -07:00
2012-07-10 23:13:45 -07:00
2012-08-15 21:36:30 -07:00
2012-07-19 11:17:30 -07:00
2012-09-23 23:12:49 +02:00
2012-09-22 12:19:22 -04:00
2012-09-12 17:17:35 +02:00
2012-09-10 16:13:31 -04:00
2012-07-10 22:36:17 +02:00
2012-09-21 20:49:26 -07:00
2012-09-24 16:51:53 -04:00
2012-07-10 23:13:45 -07:00
2012-08-15 21:36:31 -07:00
2012-07-31 14:41:38 -07:00
2012-05-21 20:27:36 -07:00
2012-05-09 20:49:19 -04:00
2012-07-19 10:48:00 -07:00
2012-07-16 22:52:02 -07:00
2012-09-27 19:27:39 -04:00
2012-09-25 16:04:44 -04:00
2012-07-19 10:48:00 -07:00
2012-07-16 23:23:52 -07:00
2012-06-15 15:30:15 -07:00
2012-04-15 12:44:40 -04:00
2012-09-27 13:18:19 -04:00
2012-05-17 18:45:20 -04:00
2012-08-15 21:36:31 -07:00
2012-09-05 14:48:15 -04:00
2012-07-12 07:54:45 -07:00
2012-09-26 01:33:16 +02:00
2012-03-22 19:29:57 -04:00
2012-08-24 13:36:09 -04:00
2012-09-21 13:58:08 -04:00
2012-07-20 12:30:48 -04:00
2012-09-03 19:06:27 -07:00
2012-08-23 09:27:12 -07:00
2012-06-17 16:29:38 -07:00
2012-07-23 01:01:44 -07:00
2012-06-06 15:18:17 -04:00
2012-04-20 21:22:30 -04:00
2012-07-10 23:56:33 -07:00
2012-09-19 16:23:53 -04:00
2012-09-03 13:24:13 -04:00
2012-09-13 09:04:13 +08:00
2012-07-13 19:34:43 -04:00
2012-08-21 14:53:01 -07:00
2012-07-24 13:55:21 -07:00
2012-04-15 12:44:40 -04:00
2012-09-18 20:43:23 -04:00
2012-07-10 23:13:45 -07:00
2012-09-20 18:08:40 -04:00
2012-07-22 17:50:49 -07:00
2012-05-21 12:50:12 -07:00
2012-05-18 01:35:08 -04:00
2010-10-15 15:53:27 +02:00
2012-09-05 18:34:13 -07:00
2012-05-15 20:14:35 -04:00