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>
This commit is contained in:

committed by
David S. Miller

parent
162288810c
commit
edf36b24c5
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user