Thread (14 messages) flat view 14 messages, 3 authors, 2026-03-06

Re: [net-next 1/3] psp: Support resetting statistics on a device

From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date: 2026-03-06 20:37:25
Also in: lkml

Akhilesh Samineni wrote:
On Thu, Mar 5, 2026 at 7:55 PM Willem de Bruijn
[off-list ref] wrote:
quoted
Akhilesh Samineni wrote:
quoted
On Tue, Mar 3, 2026 at 2:45 AM Willem de Bruijn
[off-list ref] wrote:
quoted
Akhilesh Samineni wrote:
quoted
Drivers may need to reset per-device PSP statistics to zero.
The series does not include rationale why this may be needed.

What makes PSP counters special in this regard?
The PSP supports dynamic administrative states, allowing it to be
enabled or disabled during runtime. Currently, statistics are
persistent across these state transitions, which can lead to baseline
drift and complicate telemetry analysis.
How is this dynamic enable/disable configured, and can stats reset be
part of that, rather than a separate API?
Instead of bundling the statistics reset with the transition to the
disabled mode, we considered providing a separate reset operation to
give users the flexibility to clear counters without toggling the PSP
state.
Flexibility. And responsibility. A user process that waits on a
notification to exercise this API? That would be quite complex and
clunky.

If counter reset is expected on device disable, more robust to have
that part of the reset logic itself.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help