diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-01-22 14:53:23 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-23 00:38:42 +0100 |
commit | 7bdb04ed0dbf9f0e94110be43db4f8bb7df58de2 (patch) | |
tree | 32d3faa0349f33912923606058c082bcf712437d /drivers/net/bonding/bond_netlink.c | |
parent | bonding: convert fail_over_mac to use the new option API (diff) | |
download | linux-7bdb04ed0dbf9f0e94110be43db4f8bb7df58de2.tar.xz linux-7bdb04ed0dbf9f0e94110be43db4f8bb7df58de2.zip |
bonding: convert arp_interval to use the new option API
This patch adds the necessary changes so arp_interval would use
the new bonding option API. The "default" definition has been removed as
it was 0.
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 efdff6cb19a9..74463f3db8b6 100644 --- a/drivers/net/bonding/bond_netlink.c +++ b/drivers/net/bonding/bond_netlink.c @@ -166,7 +166,8 @@ static int bond_changelink(struct net_device *bond_dev, return -EINVAL; } - err = bond_option_arp_interval_set(bond, arp_interval); + bond_opt_initval(&newval, arp_interval); + err = __bond_opt_set(bond, BOND_OPT_ARP_INTERVAL, &newval); if (err) return err; } |