]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:17 +0000 (09:26 -0700)
commit9435846fb7fa757a0fb380e2b5622d314a889a2e
tree19f495a80c535524ca2dc82765d9c433a8a3dac9
parent8f5a394c32f8137f7ceb46180c775dd2e10da851
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/bonding/bond_sysfs.c