From: Chris Friesen <chris.friesen@genband.com>
To: Jay Vosburgh <fubar@us.ibm.com>,
Andy Gospodarek <andy@greyhouse.net>,
netdev <netdev@vger.kernel.org>
Subject: bonding: why zero out bond_dev->dev_addr when last slave removed?
Date: Wed, 22 Aug 2012 14:48:12 -0600 [thread overview]
Message-ID: <5035458C.9000804@genband.com> (raw)
Hi all,
I've got a couple questions about the bonding driver.
I was wondering about the rationale for zeroing out bond_dev->dev_addr
when the last slave is removed from the bond.
Assuming bond0 is currently using the mac address of eth0 then doing
ifenslave -d bond0 eth0
ifenslave -d bond0 eth1
ifenslave bond0 eth1
ifenslave bond0 eth0
ends up changing the MAC address of the bond link. Given that the bond
itself stays up during this time, why don't we let the bond device keep
it's previous MAC address (at least if fail_over_mac is zero)?
Is this to account for the case where we move the bond to totally
different devices such that the old MAC no longer belongs to one of the
slaves but instead belongs to a NIC outside the bond?
Chris
--
Chris Friesen
Software Designer
3500 Carling Avenue
Ottawa, Ontario K2H 8E9
www.genband.com
next reply other threads:[~2012-08-22 20:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-22 20:48 Chris Friesen [this message]
2012-08-22 21:20 ` bonding: why zero out bond_dev->dev_addr when last slave removed? Jay Vosburgh
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=5035458C.9000804@genband.com \
--to=chris.friesen@genband.com \
--cc=andy@greyhouse.net \
--cc=fubar@us.ibm.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 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.