From: Or Gerlitz <ogerlitz@voltaire.com>
To: Jay Vosburgh <fubar@us.ibm.com>
Cc: netdev@vger.kernel.org
Subject: Re: active-backup/bonding with drivers not supporting set_mac_address()
Date: Tue, 11 Jul 2006 16:33:48 +0300 [thread overview]
Message-ID: <44B3A8BC.9060306@voltaire.com> (raw)
In-Reply-To: <200607101829.k6AITEp0026893@death.nxdomain.ibm.com>
Jay Vosburgh wrote:
> Or Gerlitz <ogerlitz@voltaire.com> wrote:
>
>> Looking on the linux bonding driver, it seems to unconditionally (*)
>> assume that the enslaved device supports the set_mac_address call.
>>
>>From reading the doc (Documentation/networking/bonding.txt) i understand that
>> it is **not** a must prerequisite for the active-backup mode, this is since
>> there is at most one active slave at each point of time and as the doc states:
>>
>> when a failover occurs in active-backup mode, bonding will issue
>> one or more gratuitous ARPs on the newly active slave.
>
> I think you're misreading the documentation a bit. Some
> specific modes (balance-alb, for example) require that the slave device
> driver support set_mac_address while the device is up. Many device
> drivers will only allow MAC changes while the device is down; those
> drivers won't work with the alb mode.
>
> The active-backup and other modes have always needed a set_mac
> functionality, but they don't require that the device be up when
> changing the MAC (those modes set the mac for a slave one time, during
> the enslavement process, and the device is down when this is done).
Thanks for clarifying and sharpening this point; however thinking about
set_mac_address for active-backup mode i could not convince myself that
there is a **need** for that. However, at high level it does make some
(much) sense that the bond net device exposes a mac which is not changed
when the active slave changes.
> The purpose of the gratuitous ARP is to update switch forwarding
> tables (i.e., announce that the device has moved from one port to
> another), not to announce a change of MAC address.
I see, but it will have the affect of MAC address change announcement.
> I think changing active-backup (as an example here) to cause a
> MAC change during failover will have some side effects and secondary
> requirements that aren't necessarily obvious. For example, the MAC of
> the bond itself will change during failover; I'm not sure right offhand
> what effect if any this might have on third parties.
I will be glad to know if you have more concrete ideas what would be the
possible problems with such impl.
Or.
next prev parent reply other threads:[~2006-07-11 13:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-10 13:43 active-backup/bonding with drivers not supporting set_mac_address() Or Gerlitz
2006-07-10 18:23 ` David Miller
2006-07-10 18:31 ` Jay Vosburgh
2006-07-10 18:46 ` David Miller
2006-07-10 18:29 ` Jay Vosburgh
2006-07-10 18:45 ` David Miller
2006-07-11 5:29 ` Jay Vosburgh
2006-07-11 13:33 ` Or Gerlitz [this message]
2006-07-11 14:01 ` Or Gerlitz
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=44B3A8BC.9060306@voltaire.com \
--to=ogerlitz@voltaire.com \
--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 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).