From: Jiri Pirko <jiri@resnulli.us>
To: Jan Blunck <jblunck@infradead.org>
Cc: davem@davemloft.net, kuznet@ms2.inr.ac.ru, jmorris@namei.org,
yoshfuji@linux-ipv6.org, kaber@trash.net, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, fubar@us.ibm.com
Subject: Re: [PATCH] ipv6: no addrconf for slave devices
Date: Fri, 16 Oct 2015 13:54:58 +0200 [thread overview]
Message-ID: <20151016115457.GE2194@nanopsycho.orion> (raw)
In-Reply-To: <1444990911-27458-1-git-send-email-jblunck@infradead.org>
Fri, Oct 16, 2015 at 12:21:51PM CEST, jblunck@infradead.org wrote:
>If a device without the IFF_SLAVE flag set (e.g. team, bridge, openvswitch
>vport, batman) is enslaved and IPv6 is active then addrconf will be
>initiated and a link-local address is added to the slave interface.
>
>This patch alters the behavior so that addrconf will only run on the master
>device itself. This is achieved by checking the device tree instead of
>checking for a specific flag.
>
>Signed-off-by: Jan Blunck <jblunck@infradead.org>
>---
> net/ipv6/addrconf.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
>diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
>index 9001133..26d61f0 100644
>--- a/net/ipv6/addrconf.c
>+++ b/net/ipv6/addrconf.c
>@@ -3141,8 +3141,12 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event,
>
> case NETDEV_UP:
> case NETDEV_CHANGE:
>- if (dev->flags & IFF_SLAVE)
>+ /* If a master is set stop IPv6 on this interface */
>+ if (netdev_master_upper_dev_get(dev)) {
>+ if (idev)
>+ addrconf_ifdown(dev, 1);
This breaks teamd if it's using NS/NA ping link-watch on link-local addresses.
What is the reason for this patch? Does it recolve any issue you are
having?
next prev parent reply other threads:[~2015-10-16 11:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-16 10:21 Jan Blunck
2015-10-16 11:54 ` Jiri Pirko [this message]
2015-10-16 12:19 ` Hannes Frederic Sowa
2015-10-16 15:57 ` Jan Blunck
2015-10-16 16:02 ` David Ahern
2015-10-16 16:12 ` Jan Blunck
2015-10-16 16:14 ` David Ahern
2015-10-16 16:36 ` Jan Blunck
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=20151016115457.GE2194@nanopsycho.orion \
--to=jiri@resnulli.us \
--cc=davem@davemloft.net \
--cc=fubar@us.ibm.com \
--cc=jblunck@infradead.org \
--cc=jmorris@namei.org \
--cc=kaber@trash.net \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=yoshfuji@linux-ipv6.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
all inboxes | Powered by JetHome®