aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_netlink.c
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@redhat.com>2014-01-22 14:53:27 +0100
committerDavid S. Miller <davem@davemloft.net>2014-01-22 15:38:42 -0800
commitd3131de76b1b1a4d95f145846bd61f96e72f0411 (patch)
treee78a441b8ece24edd7fb049d67a70a6836b282ca /drivers/net/bonding/bond_netlink.c
parentbonding: convert updelay to use the new option API (diff)
downloadlinux-dev-d3131de76b1b1a4d95f145846bd61f96e72f0411.tar.xz
linux-dev-d3131de76b1b1a4d95f145846bd61f96e72f0411.zip
bonding: convert lacp_rate to use the new option API
This patch adds the necessary changes so lacp_rate would use the new bonding option API. Also some trivial/style error fixes. 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_netlink.c b/drivers/net/bonding/bond_netlink.c
index 9629088cb990..508f2f51adad 100644
--- a/drivers/net/bonding/bond_netlink.c
+++ b/drivers/net/bonding/bond_netlink.c
@@ -310,7 +310,8 @@ static int bond_changelink(struct net_device *bond_dev,
int lacp_rate =
nla_get_u8(data[IFLA_BOND_AD_LACP_RATE]);
- err = bond_option_lacp_rate_set(bond, lacp_rate);
+ bond_opt_initval(&newval, lacp_rate);
+ err = __bond_opt_set(bond, BOND_OPT_LACP_RATE, &newval);
if (err)
return err;
}