Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Sep 2011 15:07:51 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r225755 - user/adrian/if_ath_tx/sys/dev/ath
Message-ID:  <201109251507.p8PF7p1c030863@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109251507.p8PF7p1c030863>