summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_netlink.c
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@redhat.com>2014-01-22 14:53:21 +0100
committerDavid S. Miller <davem@davemloft.net>2014-01-22 15:38:42 -0800
commitedf36b24c58dbbd5f2e708096537bf0a88ffa477 (patch)
tree0eb18f5930e6e524124df2fc0ac1dd99236fb3cd /drivers/net/bonding/bond_netlink.c
parent162288810c9ebd2efb79ee6dc364e266044cac9e (diff)
downloadlinux-stable-edf36b24c58dbbd5f2e708096537bf0a88ffa477.tar.gz
linux-stable-edf36b24c58dbbd5f2e708096537bf0a88ffa477.tar.bz2
linux-stable-edf36b24c58dbbd5f2e708096537bf0a88ffa477.zip
bonding: convert arp_all_targets to use the new option API
This patch adds the necessary changes so arp_all_targets 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.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 588730c39748..ff1e3d3282e3 100644
--- a/drivers/net/bonding/bond_netlink.c
+++ b/drivers/net/bonding/bond_netlink.c
@@ -202,7 +202,8 @@ static int bond_changelink(struct net_device *bond_dev,
int arp_all_targets =
nla_get_u32(data[IFLA_BOND_ARP_ALL_TARGETS]);
- err = bond_option_arp_all_targets_set(bond, arp_all_targets);
+ bond_opt_initval(&newval, arp_all_targets);
+ err = __bond_opt_set(bond, BOND_OPT_ARP_ALL_TARGETS, &newval);
if (err)
return err;
}