diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-01-22 08:53:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-22 18:38:42 -0500 |
commit | 25a9b54a4b4a996e5a996c1e841c265d40db1d40 (patch) | |
tree | dbd8f877a0893d7c900b63684c3d274932796466 /drivers/net/bonding/bond_netlink.c | |
parent | 4fb0ef585eb2825ef4e542c2b1d302dc53f36860 (diff) |
bonding: convert downdelay to use the new option API
This patch adds the necessary changes so downdelay 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 9164a5a8e44f..f30397e7131f 100644 --- a/drivers/net/bonding/bond_netlink.c +++ b/drivers/net/bonding/bond_netlink.c | |||
@@ -146,7 +146,8 @@ static int bond_changelink(struct net_device *bond_dev, | |||
146 | if (data[IFLA_BOND_DOWNDELAY]) { | 146 | if (data[IFLA_BOND_DOWNDELAY]) { |
147 | int downdelay = nla_get_u32(data[IFLA_BOND_DOWNDELAY]); | 147 | int downdelay = nla_get_u32(data[IFLA_BOND_DOWNDELAY]); |
148 | 148 | ||
149 | err = bond_option_downdelay_set(bond, downdelay); | 149 | bond_opt_initval(&newval, downdelay); |
150 | err = __bond_opt_set(bond, BOND_OPT_DOWNDELAY, &newval); | ||
150 | if (err) | 151 | if (err) |
151 | return err; | 152 | return err; |
152 | } | 153 | } |