[PATCH net 0/3] netdevsim: psp: fix issues with stats collection

From: Daniel Zahka

Date: Wed May 13 2026 - 08:59:52 EST


It has come to my attention via a sashiko review of my net-next series
for aes-gcm in netdevsim [1] that there were preexisting issues with
netdevsim's implementation of psp statistics.

API usage issues:
1. not calling u64_stats_init() on the u64_stats_sync object during
init
2. not serializing usage of the writer side API during stats update

Logical Bugs:
1. We were incrementing rx stats on the sending devices stats
counters.

[1]: https://sashiko.dev/#/patchset/20260508-nsim-psp-crypto-v1-0-4b50ed09b794%40gmail.com

Signed-off-by: Daniel Zahka <daniel.zahka@xxxxxxxxx>
---
Daniel Zahka (3):
netdevsim: psp: initialize stats syncp before use
netdevsim: psp: update rx stats on the peer netdevsim
netdevsim: psp: serialize psp stats writers

drivers/net/netdevsim/netdevsim.h | 1 +
drivers/net/netdevsim/psp.c | 26 ++++++++++++++++++--------
2 files changed, 19 insertions(+), 8 deletions(-)
---
base-commit: f5b2772d14884f4be9e718644f1203d4d0e6f0d6
change-id: 20260512-fix-psp-stats-e96c6d069d01

Best regards,
--
Daniel Zahka <daniel.zahka@xxxxxxxxx>