diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2025-11-05 16:26:04 -0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-11-07 18:53:57 -0800 |
| commit | f05d26198cf2c71f25f6bbe62ca4481c15543922 (patch) | |
| tree | d6b966ceee1f2df1ebffe68e4421160322948b88 /net/psp/psp_main.c | |
| parent | 2098cec32865422b3ddc6a1bd8beb055a3850451 (diff) | |
psp: add stats from psp spec to driver facing api
Provide a driver api for reporting device statistics required by the
"Implementation Requirements" section of the PSP Architecture
Specification. Use a warning to ensure drivers report stats required
by the spec.
Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Link: https://patch.msgid.link/20251106002608.1578518-4-daniel.zahka@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/psp/psp_main.c')
| -rw-r--r-- | net/psp/psp_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/psp/psp_main.c b/net/psp/psp_main.c index 481aaf0fc9fc..a8534124f626 100644 --- a/net/psp/psp_main.c +++ b/net/psp/psp_main.c @@ -60,7 +60,8 @@ psp_dev_create(struct net_device *netdev, !psd_ops->key_rotate || !psd_ops->rx_spi_alloc || !psd_ops->tx_key_add || - !psd_ops->tx_key_del)) + !psd_ops->tx_key_del || + !psd_ops->get_stats)) return ERR_PTR(-EINVAL); psd = kzalloc(sizeof(*psd), GFP_KERNEL); |