aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLawrence Stewart <lstewart@FreeBSD.org>2010-07-13 08:23:46 +0000
committerLawrence Stewart <lstewart@FreeBSD.org>2010-07-13 08:23:46 +0000
commitadc5f0109d6b85b8f8679114d199a3ab3a8f01f9 (patch)
treed470570c0db0ec17419134ceaac3c8cfd8e330ee
parentaac762c267018b349e40264e4aeb2bd7ff1d9e14 (diff)
downloadsrc-adc5f0109d6b85b8f8679114d199a3ab3a8f01f9.tar.gz
src-adc5f0109d6b85b8f8679114d199a3ab3a8f01f9.zip
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
Notes
Notes: svn path=/head/; revision=209982
-rw-r--r--sys/netinet/siftr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/siftr.c b/sys/netinet/siftr.c
index c90f92bbdd9e..f71b12a33545 100644
--- a/sys/netinet/siftr.c
+++ b/sys/netinet/siftr.c
@@ -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,