bonding: fix disabling of arp_interval and miimon
authornikolay@redhat.com <nikolay@redhat.com>
Wed, 27 Mar 2013 03:32:41 +0000 (03:32 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Apr 2013 02:20:12 +0000 (03:20 +0100)
commit621f4b4fc875aefc1aba54637c5ced99e8429272
tree8b384212e9825bb3a74541c0f056a66077e5a97f
parentca1961f2f8fe965eb75c727c66405c1261339697
bonding: fix disabling of arp_interval and miimon

[ Upstream commit 1bc7db16782c2a581fb4d53ca853631050f31611 ]

Currently if either arp_interval or miimon is disabled, they both get
disabled, and upon disabling they get executed once more which is not
the proper behaviour. Also when doing a no-op and disabling an already
disabled one, the other again gets disabled.
Also fix the error messages with the proper valid ranges, and a small
typo fix in the up delay error message (outputting "down delay", instead
of "up delay").

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/bonding/bond_sysfs.c