diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2014-01-22 17:53:20 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-23 03:38:42 +0400 |
commit | 162288810c9ebd2efb79ee6dc364e266044cac9e (patch) | |
tree | 2638c5904daed142d5bbaa8d0dbcfde0c35f1d22 /drivers/net/bonding/bond_netlink.c | |
parent | a4b32ce7f891d507aa663bc78118ef267f0d6d4c (diff) | |
download | linux-162288810c9ebd2efb79ee6dc364e266044cac9e.tar.xz |
bonding: convert arp_validate to use the new option API
This patch adds the necessary changes so arp_validate would use the
new bonding option API. Also fix some trivial/style errors.
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 8474af18547d..588730c39748 100644 --- a/drivers/net/bonding/bond_netlink.c +++ b/drivers/net/bonding/bond_netlink.c @@ -193,7 +193,8 @@ static int bond_changelink(struct net_device *bond_dev, return -EINVAL; } - err = bond_option_arp_validate_set(bond, arp_validate); + bond_opt_initval(&newval, arp_validate); + err = __bond_opt_set(bond, BOND_OPT_ARP_VALIDATE, &newval); if (err) return err; } |