bonding: convert use_carrier to use the new option API
This patch adds the necessary changes so use_carrier 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

vanhempi
388d3a6d4a
commit
0fff060877
@@ -156,7 +156,8 @@ static int bond_changelink(struct net_device *bond_dev,
|
||||
if (data[IFLA_BOND_USE_CARRIER]) {
|
||||
int use_carrier = nla_get_u8(data[IFLA_BOND_USE_CARRIER]);
|
||||
|
||||
err = bond_option_use_carrier_set(bond, use_carrier);
|
||||
bond_opt_initval(&newval, use_carrier);
|
||||
err = __bond_opt_set(bond, BOND_OPT_USE_CARRIER, &newval);
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
Viittaa uudesa ongelmassa
Block a user