summaryrefslogtreecommitdiffstats
path: root/sys/netinet/siftr.c
diff options
context:
space:
mode:
authorlstewart <lstewart@FreeBSD.org>2010-07-13 08:23:46 +0000
committerlstewart <lstewart@FreeBSD.org>2010-07-13 08:23:46 +0000
commit424aa3c6cc46925eb8f768bd355252b57921105b (patch)
treed470570c0db0ec17419134ceaac3c8cfd8e330ee /sys/netinet/siftr.c
parent383d2961c57c681a0a2de2cde6ac411db44e3c89 (diff)
downloadFreeBSD-src-424aa3c6cc46925eb8f768bd355252b57921105b.zip
FreeBSD-src-424aa3c6cc46925eb8f768bd355252b57921105b.tar.gz
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
Diffstat (limited to 'sys/netinet/siftr.c')
-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 c90f92b..f71b12a 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,
OpenPOWER on IntegriCloud