[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100628.231204.229752207.davem@davemloft.net>
Date: Mon, 28 Jun 2010 23:12:04 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: greearb@...il.com
Cc: netdev@...r.kernel.org, greearb@...delatech.com
Subject: Re: [iproute2] iproute2: Allow 'ip addr flush' to loop more than
10 times.
From: greearb@...il.com
Date: Mon, 28 Jun 2010 22:55:59 -0700
> From: Ben Greear <greearb@...delatech.com>
>
> The default remains at 10 for backwards compatibility.
>
> For instance:
> # ip addr flush dev eth2
> *** Flush remains incomplete after 10 rounds. ***
> # ip -l 20 addr flush dev eth2
> *** Flush remains incomplete after 20 rounds. ***
> # ip -loops 0 addr flush dev eth2
> #
>
> This is useful for getting rid of large numbers of IP
> addresses in scripts.
>
> Signed-off-by: Ben Greear <greearb@...delatech.com>
I would suggest to instead add some logic to this code to detect that
forward progress is being made.
I really don't see any value in having a hard limit that triggers on a
bulk delete when no other address changing activity is happening in
the system.
--
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