Skip to content

Remove unused support for crypto tfm cloning

Eric Biggers linux-crypto lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6crypto: hash - Remove support for cloning hash tfmscrypto/ahash.c crypto/cmac.c crypto/cryptd.c +3 more+0 -1780 repliesApplied
2/6crypto: cipher - Remove crypto_clone_cipher()crypto/cipher.c include/crypto/internal/cipher.h+0 -300 repliesApplied
3/6crypto: api - Remove crypto_clone_tfm()crypto/api.c crypto/internal.h+0 -280 repliesApplied
4/6crypto: api - Remove per-tfm refcountcrypto/api.c crypto/internal.h include/linux/crypto.h+0 -110 repliesApplied
5/6crypto: api - Fold __crypto_alloc_tfmgfp() into __crypto_alloc_tfm()crypto/api.c crypto/internal.h+3 -120 repliesApplied
6/6crypto: api - Fold crypto_alloc_tfmmem() into crypto_create_tfm_node()crypto/api.c+7 -260 repliesApplied

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchArd BiesheuvelHerbert Xu
SeriesA-b
1/6R-b
2/6R-b
3/6R-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/6] Remove unused support for crypto tfm cloning

This series is targeting net-next because it depends on "net/tcp: Remove tcp_sigpool". So far no commits in cryptodev conflict with this, so I suggest that this be taken through net-next for 7.2.

This series removes support for transformation cloning from the crypto API. Now that the TCP-AO and TCP-MD5 code no longer uses it, it no longer has a user. And it's unlikely that a new one will appear, as the library API solves the problem in a much simpler and more efficient way.

This feature also regressed performance for all crypto API users, since it changed crypto transformation objects into reference-counted objects. That added expensive atomic operations. The refcount is reverted by this series, thus fixing the performance regression.

A subset of this was previously sent in
https://lore.kernel.org/r/[email protected]
Compared to that version, this version is a bit more comprehensive.

Eric Biggers (6):
crypto: hash - Remove support for cloning hash tfms
crypto: cipher - Remove crypto_clone_cipher()
crypto: api - Remove crypto_clone_tfm()
crypto: api - Remove per-tfm refcount
crypto: api - Fold __crypto_alloc_tfmgfp() into __crypto_alloc_tfm()
crypto: api - Fold crypto_alloc_tfmmem() into crypto_create_tfm_node()

 crypto/ahash.c                   | 70 -----------------------------
 crypto/api.c                     | 76 +++++---------------------------
 crypto/cipher.c                  | 28 ------------
 crypto/cmac.c                    | 16 -------
 crypto/cryptd.c                  | 16 -------
 crypto/hmac.c                    | 31 -------------
 crypto/internal.h                | 10 -----
 crypto/shash.c                   | 37 ----------------
 include/crypto/hash.h            |  8 ----
 include/crypto/internal/cipher.h |  2 -
 include/linux/crypto.h           |  1 -
 11 files changed, 10 insertions(+), 285 deletions(-)

base-commit: 1a1f055318d82e64485a6ff8420e5f70b4267998

Signature · 1 line
2.54.0