diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-01-22 08:53:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-22 18:38:43 -0500 |
commit | 633ddc9e9bafd168861dee1000b2c6ff725e85c5 (patch) | |
tree | 39cbf28f3a4ead04ce544e94c9e24ab7668aafdb /drivers/net/bonding/bond_netlink.c | |
parent | d3131de76b1b1a4d95f145846bd61f96e72f0411 (diff) |
bonding: convert min_links to use the new option API
This patch adds the necessary changes so min_links would use
the new bonding option API.
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_netlink.c')
-rw-r--r-- | drivers/net/bonding/bond_netlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_netlink.c b/drivers/net/bonding/bond_netlink.c index 508f2f51adad..a85466c0b0e3 100644 --- a/drivers/net/bonding/bond_netlink.c +++ b/drivers/net/bonding/bond_netlink.c | |||
@@ -285,7 +285,8 @@ static int bond_changelink(struct net_device *bond_dev, | |||
285 | int min_links = | 285 | int min_links = |
286 | nla_get_u32(data[IFLA_BOND_MIN_LINKS]); | 286 | nla_get_u32(data[IFLA_BOND_MIN_LINKS]); |
287 | 287 | ||
288 | err = bond_option_min_links_set(bond, min_links); | 288 | bond_opt_initval(&newval, min_links); |
289 | err = __bond_opt_set(bond, BOND_OPT_MINLINKS, &newval); | ||
289 | if (err) | 290 | if (err) |
290 | return err; | 291 | return err; |
291 | } | 292 | } |