pf: Set cleared time when zeroing stats for table addresses

Reviewed by:		kp
Approved by:		kp (mentor)
Sponsored by:		InnoGames GmbH
Differential Revision:	https://reviews.freebsd.org/D47697

(cherry picked from commit 1a5dc6ee62b316b0caad5118dc0f3aee036f1958)
This commit is contained in:
Kajetan Staszkiewicz 2024-11-21 21:30:58 +01:00 committed by Franco Fichtner
parent d3d3ef2b33
commit 815070d457

View File

@ -669,7 +669,7 @@ pfr_clr_astats(struct pfr_table *tbl, struct pfr_addr *addr, int size,
}
if (!(flags & PFR_FLAG_DUMMY))
pfr_clstats_kentries(kt, &workq, 0, 0);
pfr_clstats_kentries(kt, &workq, time_second, 0);
if (nzero != NULL)
*nzero = xzero;
return (0);