summaryrefslogtreecommitdiff
path: root/drivers/net/bonding/bond_options.c
diff options
context:
space:
mode:
authorVeaceslav Falico <vfalico@gmail.com>2014-07-15 13:26:01 +0200
committerDavid S. Miller <davem@davemloft.net>2014-07-15 22:54:49 -0700
commitf54424412b6b2f64cae4d7c39d981ca14ce0052c (patch)
treea6ca97a2121679a772293dbd3228a15c21d4bf06 /drivers/net/bonding/bond_options.c
parente4d112e4f9502083fd27f9ac1a4cd690e3f01421 (diff)
downloadlwn-f54424412b6b2f64cae4d7c39d981ca14ce0052c.tar.gz
lwn-f54424412b6b2f64cae4d7c39d981ca14ce0052c.zip
bonding: permit enslaving interfaces without set_mac support
Currently we exit if the slave isn't the first slave, doesn't support mac address setting and fail_over_mac isn't FOM_ACTIVE. It's wrong because we only require ndo_set_mac_address in case bonding is in active-backup mode and FOM isn't FOM_ACTIVE. To fix this - only exit with an error if we're in a/b mode and have fail_over_mac != FOM_ACTIVE. Also, maintain current behaviour on the first slave (forcibly change fom to FOM_ACTIVE) to not break anyone's configuration. CC: Jay Vosburgh <j.vosburgh@gmail.com> CC: Andy Gospodarek <andy@greyhouse.net> Signed-off-by: Veaceslav Falico <vfalico@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_options.c')
0 files changed, 0 insertions, 0 deletions