summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_netlink.c
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@redhat.com>2014-01-22 14:53:18 +0100
committerDavid S. Miller <davem@davemloft.net>2014-01-22 15:38:41 -0800
commitaa59d8517d1017e571b803ba6302c4b693b324ab (patch)
tree7746e9fb5e2d8204fa2777534cf14dfbf265a2a7 /drivers/net/bonding/bond_netlink.c
parent2b3798d5e1377ce6c67993bb271754c9c5ab4833 (diff)
downloadblackbird-op-linux-aa59d8517d1017e571b803ba6302c4b693b324ab.tar.gz
blackbird-op-linux-aa59d8517d1017e571b803ba6302c4b693b324ab.zip
bonding: convert packets_per_slave to use the new option API
This patch adds the necessary changes so packets_per_slave 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_netlink.c b/drivers/net/bonding/bond_netlink.c
index db3f672a5e2a..8936a911ebe2 100644
--- a/drivers/net/bonding/bond_netlink.c
+++ b/drivers/net/bonding/bond_netlink.c
@@ -287,8 +287,8 @@ static int bond_changelink(struct net_device *bond_dev,
int packets_per_slave =
nla_get_u32(data[IFLA_BOND_PACKETS_PER_SLAVE]);
- err = bond_option_packets_per_slave_set(bond,
- packets_per_slave);
+ bond_opt_initval(&newval, packets_per_slave);
+ err = __bond_opt_set(bond, BOND_OPT_PACKETS_PER_SLAVE, &newval);
if (err)
return err;
}
OpenPOWER on IntegriCloud