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,
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"