Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2012 07:27:43 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r234091 - head/sys/dev/ath
Message-ID:  <201204100727.q3A7Rhhe009588@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Tue Apr 10 07:27:42 2012
New Revision: 234091
URL: http://svn.freebsd.org/changeset/base/234091

Log:
  Blank the aggregate stats whenever the zero ioctl is called.

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Tue Apr 10 07:23:37 2012	(r234090)
+++ head/sys/dev/ath/if_ath.c	Tue Apr 10 07:27:42 2012	(r234091)
@@ -6487,6 +6487,8 @@ ath_ioctl(struct ifnet *ifp, u_long cmd,
 		error = priv_check(curthread, PRIV_DRIVER);
 		if (error == 0) {
 			memset(&sc->sc_stats, 0, sizeof(sc->sc_stats));
+			memset(&sc->sc_aggr_stats, 0,
+			    sizeof(sc->sc_aggr_stats));
 			memset(&sc->sc_intr_stats, 0,
 			    sizeof(sc->sc_intr_stats));
 		}



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