netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: greearb@candelatech.com
Cc: greearb@gmail.com, netdev@vger.kernel.org
Subject: Re: [iproute2] iproute2: Allow 'ip addr flush' to loop more than 10 times.
Date: Tue, 29 Jun 2010 10:02:26 -0700 (PDT)	[thread overview]
Message-ID: <20100629.100226.235686154.davem@davemloft.net> (raw)
In-Reply-To: <4C2A0CF3.9020204@candelatech.com>

From: Ben Greear <greearb@candelatech.com>
Date: Tue, 29 Jun 2010 08:10:43 -0700

> If I understand your proposal properly, this would seem to be
> somewhat O(N^2) if we have large numbers of addresses, and I'm
> hoping to support thousands of IPs with decent performance.

I am not modifying the computational complexity or cost of the
operation at all.

I'm just changing under what circumstances it gives up.

> What do you think about improving the kernel side so that we can send
> a single netlink msg to delete all addresses on an interface, and just
> let the kernel do the looping/locking needed to make it happen?

I think the current scheme isn't that bad.

  reply	other threads:[~2010-06-29 17:02 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 [this message]
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
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=20100629.100226.235686154.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=greearb@candelatech.com \
    --cc=greearb@gmail.com \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).