diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2023-02-16 13:35:09 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-03-14 12:06:41 +0300 |
commit | ed0733eaa579c49dbfeaec14d4071a69a49fdde4 (patch) | |
tree | 203aaf37f41e990918cbfbcb6e9995b0dcc8eb57 /include | |
parent | a71b772ba063c47a3d70381dc32448cd5e324b34 (diff) | |
download | linux-ed0733eaa579c49dbfeaec14d4071a69a49fdde4.tar.xz |
crypto: algapi - Move stat reporting into algapi
The stats code resurrected the unions from the early days of
kernel crypto. This patch starts the process of moving them
out to the individual type structures as we do for everything
else.
In particular, add a report_stat function to cra_type and call
that from the stats code if available. This allows us to move
the actual code over one-by-one.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/algapi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h index fede394ae2ab..dcc1fd4ef1b4 100644 --- a/include/crypto/algapi.h +++ b/include/crypto/algapi.h @@ -50,6 +50,9 @@ struct crypto_type { void (*show)(struct seq_file *m, struct crypto_alg *alg); int (*report)(struct sk_buff *skb, struct crypto_alg *alg); void (*free)(struct crypto_instance *inst); +#ifdef CONFIG_CRYPTO_STATS + int (*report_stat)(struct sk_buff *skb, struct crypto_alg *alg); +#endif unsigned int type; unsigned int maskclear; |