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
This commit is contained in:
lstewart 2010-07-13 08:23:46 +00:00
parent 383d2961c5
commit 424aa3c6cc

View File

@ -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,