From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
To: Nikolay Aleksandrov <razor@blackwall.org>, netdev@vger.kernel.org
Cc: monis@voltaire.com, j.vosburgh@gmail.com,
gospo@cumulusnetworks.com, vfalico@gmail.com,
davem@davemloft.net
Subject: Re: [PATCH net] bonding: fix bond dev flags after convert to arphrd_ether
Date: Wed, 15 Jul 2015 22:55:55 +0200 [thread overview]
Message-ID: <55A6C8DB.30904@cumulusnetworks.com> (raw)
In-Reply-To: <1436990983-1406-1-git-send-email-razor@blackwall.org>
On 07/15/2015 10:09 PM, Nikolay Aleksandrov wrote:
> From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
>
> If a bonding device enslaves devices != arphrd_ether it'll change types
> and if later these devices are released, it can enslave an arphrd_ether
> device and switch back calling ether_setup() which resets dev->flags to
> IFF_BROADCAST|IFF_MULTICAST and clears IFF_MASTER which then could lead
> to many different bugs. This bug seems to have been there since the
> introduction of ether_setup() in bond_enslave().
>
> Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> Fixes: e36b9d16c6a6 ("bonding: clean muticast addresses when device changes type")
> ---
> drivers/net/bonding/bond_main.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
> index 317a49480475..8ba119896e55 100644
> --- a/drivers/net/bonding/bond_main.c
> +++ b/drivers/net/bonding/bond_main.c
> @@ -1368,6 +1368,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
> bond_setup_by_slave(bond_dev, slave_dev);
> else {
> ether_setup(bond_dev);
> + bond_dev->flags |= IFF_MASTER;
> bond_dev->priv_flags &= ~IFF_TX_SKB_SHARING;
> }
>
>
Dave please ignore this patch, I'll send a better fix.
Thanks,
Nik
next prev parent reply other threads:[~2015-07-15 20:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 20:09 [PATCH net] bonding: fix bond dev flags after convert to arphrd_ether Nikolay Aleksandrov
2015-07-15 20:32 ` Jay Vosburgh
2015-07-15 20:34 ` Nikolay Aleksandrov
2015-08-28 2:07 ` Nikolay Aleksandrov
2015-08-28 3:39 ` Jay Vosburgh
2015-08-28 17:38 ` Nikolay Aleksandrov
2015-07-15 20:55 ` Nikolay Aleksandrov [this message]
2015-07-20 20:01 ` 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=55A6C8DB.30904@cumulusnetworks.com \
--to=nikolay@cumulusnetworks.com \
--cc=davem@davemloft.net \
--cc=gospo@cumulusnetworks.com \
--cc=j.vosburgh@gmail.com \
--cc=monis@voltaire.com \
--cc=netdev@vger.kernel.org \
--cc=razor@blackwall.org \
--cc=vfalico@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.