svn commit: r225755 - user/adrian/if_ath_tx/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Sun Sep 25 15:07:51 UTC 2011
Author: adrian
Date: Sun Sep 25 15:07:50 2011
New Revision: 225755
URL: http://svn.freebsd.org/changeset/base/225755
Log:
Add code to blank the tx aggregation statistics as well.
Modified:
user/adrian/if_ath_tx/sys/dev/ath/if_ath_sysctl.c
Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_sysctl.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath_sysctl.c Sun Sep 25 15:07:16 2011 (r225754)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath_sysctl.c Sun Sep 25 15:07:50 2011 (r225755)
@@ -588,6 +588,8 @@ ath_sysctl_clearstats(SYSCTL_HANDLER_ARG
if (val == 0)
return 0; /* Not clearing the stats is still valid */
memset(&sc->sc_stats, 0, sizeof(sc->sc_stats));
+ memset(&sc->sc_aggr_stats, 0, sizeof(sc->sc_aggr_stats));
+
val = 0;
return 0;
}
More information about the svn-src-user
mailing list