|
@@ -3439,7 +3439,8 @@ static int bond_set_mac_address(struct net_device *bond_dev, void *addr)
|
|
/* If fail_over_mac is enabled, do nothing and return success.
|
|
/* If fail_over_mac is enabled, do nothing and return success.
|
|
* Returning an error causes ifenslave to fail.
|
|
* Returning an error causes ifenslave to fail.
|
|
*/
|
|
*/
|
|
- if (bond->params.fail_over_mac)
|
|
|
|
|
|
+ if (bond->params.fail_over_mac &&
|
|
|
|
+ bond->params.mode == BOND_MODE_ACTIVEBACKUP)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
if (!is_valid_ether_addr(sa->sa_data))
|
|
if (!is_valid_ether_addr(sa->sa_data))
|