aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_netlink.c
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@redhat.com>2014-01-22 14:53:26 +0100
committerDavid S. Miller <davem@davemloft.net>2014-01-22 15:38:42 -0800
commite499461275023e20c4aecb6a546e7e213631b99f (patch)
tree9c51e9a9740b5a0b16ebe0b80cb9f33732812860 /drivers/net/bonding/bond_netlink.c
parentbonding: convert downdelay to use the new option API (diff)
downloadlinux-dev-e499461275023e20c4aecb6a546e7e213631b99f.tar.xz
linux-dev-e499461275023e20c4aecb6a546e7e213631b99f.zip
bonding: convert updelay to use the new option API
This patch adds the necessary changes so updelay would use the new bonding option API. Also some trivial style 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 f30397e7131f..9629088cb990 100644
--- a/drivers/net/bonding/bond_netlink.c
+++ b/drivers/net/bonding/bond_netlink.c
@@ -139,7 +139,8 @@ static int bond_changelink(struct net_device *bond_dev,
if (data[IFLA_BOND_UPDELAY]) {
int updelay = nla_get_u32(data[IFLA_BOND_UPDELAY]);
- err = bond_option_updelay_set(bond, updelay);
+ bond_opt_initval(&newval, updelay);
+ err = __bond_opt_set(bond, BOND_OPT_UPDELAY, &newval);
if (err)
return err;
}