Or Gerlitz <[EMAIL PROTECTED]> 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).

        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'd like to get feedback from people here if you think it makes sense
>to change the bonding driver to actually allow for active-backup/bonding
>with network device drivers which does not support set_mac_address.

        What network device drivers are there that don't permit ever
changing the device MAC address?

        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.

        -J

---
        -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to