Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2010 08:23:46 +0000 (UTC)
From:      Lawrence Stewart <lstewart@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209982 - head/sys/netinet
Message-ID:  <201007130823.o6D8Nkun067899@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lstewart
Date: Tue Jul 13 08:23:46 2010
New Revision: 209982
URL: http://svn.freebsd.org/changeset/base/209982

Log:
  The SIFTR DPCPU statistics struct was not being zeroed between enable/disable
  cycles so the values would accumulate rather than reset for each cycle.
  
  Sponsored by:	FreeBSD Foundation

Modified:
  head/sys/netinet/siftr.c

Modified: head/sys/netinet/siftr.c
==============================================================================
--- head/sys/netinet/siftr.c	Tue Jul 13 08:05:48 2010	(r209981)
+++ head/sys/netinet/siftr.c	Tue Jul 13 08:23:46 2010	(r209982)
@@ -1233,6 +1233,8 @@ siftr_manage_ops(uint8_t action)
 
 		STAILQ_INIT(&pkt_queue);
 
+		DPCPU_ZERO(ss);
+
 		siftr_exit_pkt_manager_thread = 0;
 
 		ret = kthread_add(&siftr_pkt_manager_thread, NULL, NULL,



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