diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-01-22 14:53:26 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-22 15:38:42 -0800 |
commit | e499461275023e20c4aecb6a546e7e213631b99f (patch) | |
tree | 9c51e9a9740b5a0b16ebe0b80cb9f33732812860 /drivers/net/bonding/bond_netlink.c | |
parent | 25a9b54a4b4a996e5a996c1e841c265d40db1d40 (diff) |
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.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 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; } |