netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] ipv6: remove duplicate neigh_ifdown
       [not found] <20101216175152.6767d0a7@nehalam>
@ 2010-12-17  3:42 ` Stephen Hemminger
  2010-12-17 17:49   ` David Miller
  2010-12-19  6:02   ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Stephen Hemminger @ 2010-12-17  3:42 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

When device is being set to down, neigh_ifdown was being called
twice. Once from addrconf notifier and once from ndisc notifier.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

--- a/net/ipv6/addrconf.c	2010-12-16 17:50:26.658169250 -0800
+++ b/net/ipv6/addrconf.c	2010-12-16 17:52:15.227220647 -0800
@@ -2672,7 +2672,6 @@ static int addrconf_ifdown(struct net_de
 	/* Flush routes if device is being removed or it is not loopback */
 	if (how || !(dev->flags & IFF_LOOPBACK))
 		rt6_ifdown(net, dev);
-	neigh_ifdown(&nd_tbl, dev);
 
 	idev = __in6_dev_get(dev);
 	if (idev == NULL)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] ipv6: remove duplicate neigh_ifdown
  2010-12-17  3:42 ` [PATCH net-next] ipv6: remove duplicate neigh_ifdown Stephen Hemminger
@ 2010-12-17 17:49   ` David Miller
  2010-12-17 18:01     ` Stephen Hemminger
  2010-12-19  6:02   ` David Miller
  1 sibling, 1 reply; 5+ messages in thread
From: David Miller @ 2010-12-17 17:49 UTC (permalink / raw)
  To: shemminger; +Cc: netdev

From: Stephen Hemminger <shemminger@vyatta.com>
Date: Thu, 16 Dec 2010 19:42:54 -0800

> When device is being set to down, neigh_ifdown was being called
> twice. Once from addrconf notifier and once from ndisc notifier.
> 
> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

I'll give you a cookie if you can show me how this patch applies to
net-next-2.6 cleanly. :-)

It only matches the code in net-2.6 which has changed non-trivially in
net-next-2.6

If you worked against net-2.6 and thought "I can't think of anything
that could have changed in net-next-2.6 in this area", that's not
an appropriate way to operate and submit patches.

Please don't be so careless, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] ipv6: remove duplicate neigh_ifdown
  2010-12-17 17:49   ` David Miller
@ 2010-12-17 18:01     ` Stephen Hemminger
  2010-12-17 18:14       ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Hemminger @ 2010-12-17 18:01 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

On Fri, 17 Dec 2010 09:49:16 -0800 (PST)
David Miller <davem@davemloft.net> wrote:

> From: Stephen Hemminger <shemminger@vyatta.com>
> Date: Thu, 16 Dec 2010 19:42:54 -0800
> 
> > When device is being set to down, neigh_ifdown was being called
> > twice. Once from addrconf notifier and once from ndisc notifier.
> > 
> > Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
> 
> I'll give you a cookie if you can show me how this patch applies to
> net-next-2.6 cleanly. :-)
> 
> It only matches the code in net-2.6 which has changed non-trivially in
> net-next-2.6
> 
> If you worked against net-2.6 and thought "I can't think of anything
> that could have changed in net-next-2.6 in this area", that's not
> an appropriate way to operate and submit patches.
> 
> Please don't be so careless, thanks.

Ok. It followed my last patch that did the rt6_ifdown only
if not loopback. Since you accepted that, I sent the next one.



-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] ipv6: remove duplicate neigh_ifdown
  2010-12-17 18:01     ` Stephen Hemminger
@ 2010-12-17 18:14       ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2010-12-17 18:14 UTC (permalink / raw)
  To: shemminger; +Cc: netdev

From: Stephen Hemminger <shemminger@vyatta.com>
Date: Fri, 17 Dec 2010 10:01:01 -0800

> Ok. It followed my last patch that did the rt6_ifdown only
> if not loopback. Since you accepted that, I sent the next one.

I applied it to net-2.6, which is how we handle bug fixes.  The
fix naturally propagates to net-next-2.6 the next tiem I do a merge.

This is why I found it quite strange when you were talking about
net-next-2.6 wrt. that bug fix.  We never apply clear important fixes
to net-next-2.6 first, then backport it to net-2.6

If such a net-2.6 dependency exists on a net-next-2.6 patch, you just
need to let me know about it so I can do the merge before applying it.
That's all.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] ipv6: remove duplicate neigh_ifdown
  2010-12-17  3:42 ` [PATCH net-next] ipv6: remove duplicate neigh_ifdown Stephen Hemminger
  2010-12-17 17:49   ` David Miller
@ 2010-12-19  6:02   ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2010-12-19  6:02 UTC (permalink / raw)
  To: shemminger; +Cc: netdev

From: Stephen Hemminger <shemminger@vyatta.com>
Date: Thu, 16 Dec 2010 19:42:54 -0800

> When device is being set to down, neigh_ifdown was being called
> twice. Once from addrconf notifier and once from ndisc notifier.
> 
> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

Applied.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-12-19  6:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20101216175152.6767d0a7@nehalam>
2010-12-17  3:42 ` [PATCH net-next] ipv6: remove duplicate neigh_ifdown Stephen Hemminger
2010-12-17 17:49   ` David Miller
2010-12-17 18:01     ` Stephen Hemminger
2010-12-17 18:14       ` David Miller
2010-12-19  6:02   ` David Miller

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).