psp: add missing device stats to get-stats reply attributes
Subsystems (4)
Daniel Zahka
maintainerPATCH 1/1 psp: add missing device stats to get-stats reply attributes
Commit f05d26198cf2 ("psp: add stats from psp spec to driver facing api") added device statistics (rx-packets, rx-bytes, rx-auth-fail, rx-error, rx-bad, tx-packets, tx-bytes, tx-error) to the stats attribute-set but did not add them to the get-stats operation reply attributes. The kernel reports these attributes in the reply, so list them in the spec to match.
---
This is a small fix to add the rest of the PSP hw stats from Commit f05d26198cf2 ("psp: add stats from psp spec to driver facing api") to the get-stats reply attributes.
The pyynl cli tool does not use these attributes for parsing responses, but other tools, like the ynl-cpp tool, do.
--- Documentation/netlink/specs/psp.yaml | 8 ++++++++ 1 file changed, 8 insertions(+)
Documentation/netlink/specs/psp.yaml +8 -0
@@ -267,6 +267,14 @@ operations: - dev-id - key-rotations - stale-events + - rx-packets + - rx-bytes + - rx-auth-fail + - rx-error + - rx-bad + - tx-packets + - tx-bytes + - tx-error pre: psp-device-get-locked post: psp-device-unlock dump:
---
base-commit: 269389ba539834ec80e4d55583fca2cd70e4dc9c
change-id: 20260402-psp-yaml-fix-20661f0af865
Best regards,
Signature · 1 line
Daniel Zahka <[email protected]>
Quoted 9 lines · Daniel Zahka
Commit
f05d26198cf2("psp: add stats from psp spec to driver facing api") added device statistics (rx-packets, rx-bytes, rx-auth-fail, rx-error, rx-bad, tx-packets, tx-bytes, tx-error) to the stats attribute-set but did not add them to the get-stats operation reply attributes. The kernel reports these attributes in the reply, so list them in the spec to match.Signed-off-by Jakub Kicinski <[email protected]>Signed-off-by Daniel Zahka <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Fri, 03 Apr 2026 03:26:31 -0700 you wrote:
Commit
f05d26198cf2("psp: add stats from psp spec to driver facing api") added device statistics (rx-packets, rx-bytes, rx-auth-fail, rx-error, rx-bad, tx-packets, tx-bytes, tx-error) to the stats attribute-set but did not add them to the get-stats operation reply attributes. The kernel reports these attributes in the reply, so list them in the spec to match.[...]
Here is the summary with links:
- [net-next] psp: add missing device stats to get-stats reply attributes
https://git.kernel.org/netdev/net-next/c/c8eee00c0fef
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html