Subject: Re: [PATCH] inetpeer: ensure to set the maximum tokens the first time

From: Nicolas Dichtel <[email-masked]>
Date: Thu, 27 Sep 2012 15:39:13 +0200

Le 27/09/2012 15:34, Eric Dumazet a écrit :
> On Thu, 2012-09-27 at 15:30 +0200, Eric Dumazet wrote:
>
>> So find the right initializer ?
>>
>> p->rate_last = jiffies;
>> p->rate_tokens = TOKENS_INIT;
>>
>>
>
> Or :
>
> p->rate_last = jiffies - 60*HZ;
>
> since the rates_tokens initial value is protocol/family dependent
Yes, this will avoid to pass the timeout arg to inet_getpeer()