All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Andreas Henriksson <andreas@fatal.se>
Cc: maximilian attems <max@stro.at>,
	shemminger@linux-foundation.org, netdev@vger.kernel.org
Subject: Re: iproute2: git pull request from debian repo.
Date: Tue, 23 Oct 2007 16:38:06 +0200	[thread overview]
Message-ID: <471E074E.8050805@trash.net> (raw)
In-Reply-To: <20071023141838.GA25201@scream.fatal.se>

Andreas Henriksson wrote:
> On Sun, Oct 21, 2007 at 07:48:21PM +0200, Patrick McHardy wrote:
>> Andreas Henriksson wrote:
>>> -		for (;;) {
>>> +		while (round < MAX_ROUNDS) {
>>> 			if (rtnl_wilddump_request(&rth, filter.family, 
>>> 			RTM_GETADDR) < 0) {
>>> 				perror("Cannot send dump request");
>>> 				exit(1);
>>> @@ -694,6 +696,8 @@ int ipaddr_list_or_flush(int argc, char **argv, int 
>>> flush)
>>> 				fflush(stdout);
>>> 			}
>>> 		}
>>> +		fprintf(stderr, "*** Flush remains incomplete after %d 
>>> rounds. ***\n", MAX_ROUNDS); fflush(stderr);
>>
>> Again, please make this optional. People might want to make
>> sure the cache is flushed even if it takes a bit longer.
> 
> And here's the alternativ with configurable max rounds (0=infinite)...


Almost - the default behaviour shouldn't change IMO. Also please
send a complete patch, not one on top of your old one.

>  
> -		while (round < MAX_ROUNDS) {
> +		while ((maxrounds == 0) || (round < maxrounds)) {

And please remove the unnecessary parens.

  reply	other threads:[~2007-10-23 14:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-19 12:27 iproute2: git pull request from debian repo Andreas Henriksson
2007-10-19 13:06 ` maximilian attems
2007-10-19 14:48   ` Andreas Henriksson
2007-10-21 17:48     ` Patrick McHardy
2007-10-23 13:56       ` Andreas Henriksson
2007-10-23 14:18       ` Andreas Henriksson
2007-10-23 14:38         ` Patrick McHardy [this message]
2007-10-23 15:01           ` Andreas Henriksson
2007-10-23 15:08             ` Patrick McHardy
2007-10-23 15:27               ` Andreas Henriksson

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=471E074E.8050805@trash.net \
    --to=kaber@trash.net \
    --cc=andreas@fatal.se \
    --cc=max@stro.at \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.