bonding: convert all_slaves_active to use the new option API
This patch adds the necessary changes so all_slaves_active would use the new bonding option API. Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
24089ba102
commit
3df0116251
@@ -282,8 +282,8 @@ static int bond_changelink(struct net_device *bond_dev,
|
||||
int all_slaves_active =
|
||||
nla_get_u8(data[IFLA_BOND_ALL_SLAVES_ACTIVE]);
|
||||
|
||||
err = bond_option_all_slaves_active_set(bond,
|
||||
all_slaves_active);
|
||||
bond_opt_initval(&newval, all_slaves_active);
|
||||
err = __bond_opt_set(bond, BOND_OPT_ALL_SLAVES_ACTIVE, &newval);
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user