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:
Nikolay Aleksandrov
2014-01-22 14:53:32 +01:00
committed by David S. Miller
orang tua b98d9c66e1
melakukan 180222f088
5 mengubah file dengan 22 tambahan dan 22 penghapusan

Melihat File

@@ -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;
}