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

orang tua
b98d9c66e1
melakukan
180222f088
@@ -227,7 +227,8 @@ static int bond_changelink(struct net_device *bond_dev,
|
||||
if (dev)
|
||||
primary = dev->name;
|
||||
|
||||
err = bond_option_primary_set(bond, primary);
|
||||
bond_opt_initstr(&newval, primary);
|
||||
err = __bond_opt_set(bond, BOND_OPT_PRIMARY, &newval);
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user