]> 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 17:04:39 +0000 (10:04 -0700)
commitae8c63b03d7b70c0b65f1b6e304ed1976fb3019b
tree89e31294541328af9027334a82afd6f38ea7019c
parentd98ea1888738fea067a1411eaefc46637f1dad8d
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