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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2013 19:02:49 +0000 (15:02 -0400)
commit1bc7db16782c2a581fb4d53ca853631050f31611
treeaa812d70a7ddedd6108e91ae27889c953a84c35e
parent1c4a154e5253687c51123956dfcee9e9dfa8542d
bonding: fix disabling of arp_interval and miimon

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>
drivers/net/bonding/bond_sysfs.c