public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta•com>
To: greearb@gmail•com
Cc: netdev@vger•kernel.org, Ben Greear <greearb@candelatech•com>
Subject: Re: [iproute2] iproute2:  Allow 'ip addr flush' to loop more than 10 times.
Date: Wed, 4 Aug 2010 14:00:12 -0700	[thread overview]
Message-ID: <20100804140012.577b2195@nehalam> (raw)
In-Reply-To: <1277790959-28075-1-git-send-email-greearb@candelatech.com>

On Mon, 28 Jun 2010 22:55:59 -0700
greearb@gmail•com wrote:

> From: Ben Greear <greearb@candelatech•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@candelatech•com>

The current userspace driven flush behavior is crap.
There really should be an atomic flush netlink message
with kernel support.

  parent reply	other threads:[~2010-08-04 21:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-29  5:55 [iproute2] iproute2: Allow 'ip addr flush' to loop more than 10 times greearb
2010-06-29  6:12 ` David Miller
2010-06-29  6:27   ` Ben Greear
2010-06-29  6:36     ` David Miller
2010-06-29  9:58       ` Andreas Henriksson
2010-06-29 14:59         ` Ben Greear
2010-06-29 15:10       ` Ben Greear
2010-06-29 17:02         ` David Miller
2010-06-29  8:03 ` Alexander Clouter
2010-06-29 15:04   ` Ben Greear
2010-06-29 15:48     ` Alexander Clouter
2010-06-29 16:30       ` Ben Greear
2010-08-04 21:00 ` Stephen Hemminger [this message]
2010-08-04 21:13   ` Ben Greear

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=20100804140012.577b2195@nehalam \
    --to=shemminger@vyatta$(echo .)com \
    --cc=greearb@candelatech$(echo .)com \
    --cc=greearb@gmail$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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