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

committad av
David S. Miller

förälder
1df6b6aa33
incheckning
7bdb04ed0d
@@ -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;
|
||||
}
|
||||
|
Referens i nytt ärende
Block a user