bonding: convert primary_reselect to use the new option API
This patch adds the necessary changes so primary_reselect would use the new bonding option API. Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Esse commit está contido em:

commit de
David S. Miller

pai
180222f088
commit
388d3a6d4a
@@ -236,7 +236,8 @@ static int bond_changelink(struct net_device *bond_dev,
|
||||
int primary_reselect =
|
||||
nla_get_u8(data[IFLA_BOND_PRIMARY_RESELECT]);
|
||||
|
||||
err = bond_option_primary_reselect_set(bond, primary_reselect);
|
||||
bond_opt_initval(&newval, primary_reselect);
|
||||
err = __bond_opt_set(bond, BOND_OPT_PRIMARY_RESELECT, &newval);
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
Referência em uma nova issue
Block a user