DCCP protocol discussions
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
To: dccp@vger.kernel.org
Subject: Re: [PATCH v2  4/5]: Rate-limit DCCP-Syncs
Date: Tue, 25 Sep 2007 12:27:11 +0000	[thread overview]
Message-ID: <20070925122711.GB18348@ghostprotocols.net> (raw)
In-Reply-To: <200709251058.41805@strip-the-willow>

Em Tue, Sep 25, 2007 at 01:16:53PM +0100, Gerrit Renker escreveu:
> 
> |  > +/* rate-limit for syncs in reply to sequence-invalid packets; RFC 4340, 7.5.4 */
> |  > +int sysctl_dccp_sync_ratelimit       __read_mostly = HZ / 8;
> |  
> |  Why the extra spaces/tabs before __read_mostly? 
> This is for consistency with the sysctls below, the whole paragraph looks like this:
> 
> /* the maximum queue length for tx in packets. 0 is no limit */
> int sysctl_dccp_tx_qlen         __read_mostly = 5;
> 
> /* sysctl variables governing numbers of retransmission attempts */
> int sysctl_dccp_request_retries __read_mostly = TCP_SYN_RETRIES;
> int sysctl_dccp_retries1        __read_mostly = TCP_RETR1;
> int sysctl_dccp_retries2        __read_mostly = TCP_RETR2;
> 
> /* rate-limit for syncs in reply to sequence-invalid packets; RFC 4340, 7.5.4 */
> int sysctl_dccp_sync_ratelimit  __read_mostly = HZ / 8;
> 
> Sigh - I just wanted to be `neat', but each maintainer has a different conception of that :)

Ok, sorry for the noise on this one, should be ok, at least for me ;-)
 
> |  One more: 
> |  In linux networking code what has been the most accepted form for
> |  multiline expressions is:
> |  
> |                  if (time_after(now, (dp->dccps_rate_last +
> |                                       sysctl_dccp_sync_ratelimit))) {
> |  
> |  Either form produces the same code, but as the later is what I, David
> |  and others are most confortable with and have been using for quite a
> |  while, 
> Please excuse my ignorance: that was simply something I didn't know, and thus it is good that
> it is on the list, so that others can also adapt this. Thanks for explaining.
> 
> It is _very_ important since in CCID3/CCID4 variable names are all very long (the drafts are
> also long), and lots of calculations.
> 
> Will fix that and put the result in the tree.

Great, thank you.

- Arnaldo

      parent reply	other threads:[~2007-09-25 12:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-25  9:58 [PATCH v2 4/5]: Rate-limit DCCP-Syncs Gerrit Renker
2007-09-25 11:35 ` Arnaldo Carvalho de Melo
2007-09-25 12:16 ` Gerrit Renker
2007-09-25 12:27 ` Arnaldo Carvalho de Melo [this message]

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=20070925122711.GB18348@ghostprotocols.net \
    --to=acme@ghostprotocols.net \
    --cc=dccp@vger.kernel.org \
    /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