crypto: algapi - Move stat reporting into algapi
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 Feb 2023 10:35:09 +0000 (18:35 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 14 Mar 2023 09:06:41 +0000 (17:06 +0800)
commited0733eaa579c49dbfeaec14d4071a69a49fdde4
tree203aaf37f41e990918cbfbcb6e9995b0dcc8eb57
parenta71b772ba063c47a3d70381dc32448cd5e324b34
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>
crypto/crypto_user_stat.c
include/crypto/algapi.h