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

From: WANG Cong <[email-masked]>
Date: Wed, 1 Jun 2011 13:51:25 +0000 (UTC)

On Wed, 01 Jun 2011 11:40:49 +0200, Jiri Pirko wrote:

> This patch allows to reset failure counters for all enslaved devices.
> 
> Signed-off-by: Jiri Pirko <[email-masked]>
> ---
>  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.