[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1348752886.5093.1282.camel@edumazet-glaptop>
Date: Thu, 27 Sep 2012 15:34:46 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: nicolas.dichtel@...nd.com
Cc: netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [PATCH] inetpeer: ensure to set the maximum tokens the first
time
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists