diff options
author | lstewart <lstewart@FreeBSD.org> | 2010-07-13 08:23:46 +0000 |
---|---|---|
committer | lstewart <lstewart@FreeBSD.org> | 2010-07-13 08:23:46 +0000 |
commit | 424aa3c6cc46925eb8f768bd355252b57921105b (patch) | |
tree | d470570c0db0ec17419134ceaac3c8cfd8e330ee | |
parent | 383d2961c57c681a0a2de2cde6ac411db44e3c89 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/netinet/siftr.c | 2 |
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, |