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

From: Akhilesh Samineni

Date: Fri Mar 06 2026 - 11:01:49 EST


On Thu, Mar 5, 2026 at 8:29 PM Jakub Kicinski <kuba@xxxxxxxxxx> wrote:
>
> On Thu, 5 Mar 2026 16:24:05 +0530 Akhilesh Samineni wrote:
> > 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.
>
> Baseline drift? What _concrete_ use case do you actually have in mind?
> Do you know of other stats that get reset when something is disabled
> in networking?

This can be useful in scenarios such as when the device configuration
changes between different versions or algorithms, or when the PSP
device is reassigned between tenants/VMs in a multi-tenant
environment. In such cases, having a dedicated control to reset the
counters allows users to start monitoring statistics from a clean
state.

That said, if the common practice in netdev is to avoid providing
explicit reset functionality for such statistics, we are fine with
aligning with that convention and not introducing a deviation.

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