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

From: Akhilesh Samineni

Date: Thu Mar 05 2026 - 05:54:43 EST


On Tue, Mar 3, 2026 at 2:45 AM Willem de Bruijn
<willemdebruijn.kernel@xxxxxxxxx> wrote:
>
> Akhilesh Samineni wrote:
> > 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.

This patch introduces a statistics reset mechanism to allow userspace
to clear accumulated counters. This is essential for establishing a
deterministic baseline when re-enabling the device, ensuring that
performance metrics and error counters reflect only the current device
state.

> > Add a reset-stats netlink command and a corresponding optional
> > driver callback to support this.
> >
> > Signed-off-by: Akhilesh Samineni <akhilesh.samineni@xxxxxxxxxxxx>
> > Reviewed-by: Kiran Kella <kiran.kella@xxxxxxxxxxxx>
> > Reviewed-by: Ajit Kumar Khaparde <ajit.khaparde@xxxxxxxxxxxx>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature