From: Eric Dumazet <eric.dumazet@gmail.com>
To: nicolas.dichtel@6wind.com
Cc: netdev@vger.kernel.org, davem@davemloft.net
Subject: Re: [PATCH] inetpeer: ensure to set the maximum tokens the first time
Date: Thu, 27 Sep 2012 15:34:46 +0200 [thread overview]
Message-ID: <1348752886.5093.1282.camel@edumazet-glaptop> (raw)
In-Reply-To: <1348752600.5093.1275.camel@edumazet-glaptop>
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
next prev parent reply other threads:[~2012-09-27 13:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-27 12:33 [PATCH] inetpeer: ensure to set the maximum tokens the first time Nicolas Dichtel
2012-09-27 12:53 ` Eric Dumazet
2012-09-27 13:21 ` Nicolas Dichtel
2012-09-27 13:30 ` Eric Dumazet
2012-09-27 13:34 ` Eric Dumazet [this message]
2012-09-27 13:39 ` Nicolas Dichtel
2012-09-27 14:11 ` [PATCH v2] inetpeer: fix token initialization Nicolas Dichtel
2012-09-27 14:18 ` Eric Dumazet
2012-09-27 23:28 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1348752886.5093.1282.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=nicolas.dichtel@6wind.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox