[Bug 282984] [PATCH] pfctl: add -T `makezero` to touch pfras_tzero _only_ for non-zero entries
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Nov 2024 13:39:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282984 --- Comment #7 from Kristof Provost <kp@freebsd.org> --- (In reply to Leonid Evdokimov from comment #6) I don't have any particularly strong opinions here. I'm unlikely to use either option myself. I will point out that even moving this operation entirely into the kernel doesn't make it race-free, because counters use counter_u64, which uses per-core counters, so there's never an atomic view of the actual counter value. It's inherently an approximate snapshot. So it's probably better to use the existing 'zero 1.2.3.4 5.6.7.8 ..' option. -- You are receiving this mail because: You are the assignee for the bug.