Netdev List
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: ebiederm@xmission.com, netdev@vger.kernel.org, daniel.lezcano@free.fr
Subject: Re: [PATCH] ipv4: Flush per-ns routing cache more sanely.
Date: Mon, 20 Dec 2010 18:13:53 +0100	[thread overview]
Message-ID: <1292865233.2800.192.camel@edumazet-laptop> (raw)
In-Reply-To: <20101219.211453.226783693.davem@davemloft.net>

Le dimanche 19 décembre 2010 à 21:14 -0800, David Miller a écrit :
> From: Eric Dumazet <eric.dumazet@gmail.com>
> Date: Tue, 26 Oct 2010 21:30:22 +0200
> 
> > Le mardi 26 octobre 2010 à 12:20 -0700, David Miller a écrit :
> >> From: ebiederm@xmission.com (Eric W. Biederman)
> >> Date: Tue, 26 Oct 2010 12:05:39 -0700
> >> 
> >> >> @@ -999,7 +999,7 @@ static int fib_netdev_event(struct notifier_block *this, unsigned long event, vo
> >> >>  		rt_cache_flush(dev_net(dev), 0);
> >> >>  		break;
> >> >>  	case NETDEV_UNREGISTER_BATCH:
> >> >> -		rt_cache_flush_batch();
> >> >> +		rt_cache_flush_batch(dev_net(dev));
> >> > 
> >> > It still has this incorrect conversion in it.
> >> 
> >> Sorry I missed that, what's the exact problem with it?
> > 
> > Because the way _BATCH operation is performed, we call it once...
> > 
> > rollback_registered_many() calls it for the first dev queued in the
> > list.
> > 
> > So it should be net independant.
> 
> Thanks Eric.  I finally got back to fixing this issue and respinning
> the patch.
> 
> Please review, in particular how I handled the RCU bits.
> 
> --------------------
> ipv4: Flush per-ns routing cache more sanely.
> 
> Flush the routing cache only of entries that match the
> network namespace in which the purge event occurred.
> 
> Signed-off-by: David S. Miller <davem@davemloft.net>


Seems fine to me, thanks !

Acked-by: Eric Dumazet <eric.dumazet@gmail.com>



  reply	other threads:[~2010-12-20 17:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26 17:34 [PATCH] ipv4: Flush per-ns routing cache more sanely David Miller
2010-10-26 18:57 ` Eric Dumazet
2010-10-26 18:57 ` Daniel Lezcano
2010-10-26 19:05 ` Eric W. Biederman
2010-10-26 19:20   ` David Miller
2010-10-26 19:30     ` Eric Dumazet
2010-10-29 21:41       ` Daniel Lezcano
2010-10-29 22:21         ` David Miller
2010-12-20  5:14       ` David Miller
2010-12-20 17:13         ` Eric Dumazet [this message]
2010-12-20 18:36           ` David Miller

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=1292865233.2800.192.camel@edumazet-laptop \
    --to=eric.dumazet@gmail.com \
    --cc=daniel.lezcano@free.fr \
    --cc=davem@davemloft.net \
    --cc=ebiederm@xmission.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