Thread (18 messages) flat view 18 messages, 6 authors, 2011-06-01

Re: [patch net-next-2.6] bonding: allow resetting slave failure counters

From: WANG Cong <hidden>
Date: 2011-06-01 13:51:41

On Wed, 01 Jun 2011 11:40:49 +0200, Jiri Pirko wrote:
quoted hunk ↗ jump to hunk
This patch allows to reset failure counters for all enslaved devices.

Signed-off-by: Jiri Pirko <redacted>
---
 Documentation/networking/bonding.txt |    7 +++++++
 drivers/net/bonding/bond_sysfs.c     |   27 +++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/Documentation/networking/bonding.txt
b/Documentation/networking/bonding.txt index 675612f..2f51d73 100644
--- a/Documentation/networking/bonding.txt +++
b/Documentation/networking/bonding.txt @@ -782,6 +782,13 @@ resend_igmp
 
 	This option was added for bonding version 3.7.0.
 
+reset_failure_counters
+
+	This write-only control file will zero failure counters for +	all
slaves.  Note there is no appropriate module parameter for this 
+	since
it would not make much sense. +	Write any value to perform reset.
+
Writing any value includes zero will work? I think only non-zero
number makes sense, if we write zero, nothing should happen.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help