diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-01-22 17:53:28 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-23 03:38:43 +0400 |
commit | 633ddc9e9bafd168861dee1000b2c6ff725e85c5 (patch) | |
tree | 39cbf28f3a4ead04ce544e94c9e24ab7668aafdb /drivers/net/bonding/bond_netlink.c | |
parent | d3131de76b1b1a4d95f145846bd61f96e72f0411 (diff) | |
download | linux-633ddc9e9bafd168861dee1000b2c6ff725e85c5.tar.xz |
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, int min_links = nla_get_u32(data[IFLA_BOND_MIN_LINKS]); - err = bond_option_min_links_set(bond, min_links); + bond_opt_initval(&newval, min_links); + err = __bond_opt_set(bond, BOND_OPT_MINLINKS, &newval); if (err) return err; } |