Skip to content

crypto: acomp - Use optional async calling convention

Herbert Xu linux-crypto linux-mtd 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7crypto: api - Add helpers to manage request flagsinclude/crypto/algapi.h include/linux/crypto.h+29 -00 replies
2/7crypto: acomp - Use request flag helpers and add acomp_request_flagsinclude/crypto/acompress.h include/crypto/internal/acompress.h+22 -110 replies
3/7crypto: acomp - Add ACOMP_FBREQ_ON_STACKcrypto/acompress.c include/crypto/internal/acompress.h+27 -130 replies
4/7crypto: iaa - Switch to ACOMP_FBREQ_ON_STACKdrivers/crypto/intel/iaa/iaa_crypto_main.c+1 -40 replies
5/7crypto: acomp - Add ACOMP_REQUEST_CLONEcrypto/acompress.c include/crypto/acompress.h include/crypto/internal/acompress.h+52 -120 replies
6/7ubifs: Use ACOMP_REQUEST_CLONEfs/ubifs/compress.c+116 -1350 replies
7/7crypto: acomp - Remove ACOMP_REQUEST_ALLOCinclude/crypto/acompress.h+0 -210 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] crypto: acomp - Use optional async calling convention

This patch series introduces the optional async calling convention for acomp. This will be extended to all other Crypto API types that support async.

With this a stack request is setup initially and will be used as long as the algorithm can complete synchronously. If it cannot then EAGAIN is returned, and the caller may choose to allocate a dynamic request through the REQUEST_CLONE call and then redo the call asynchronously.

This series is based on top of

https://lore.kernel.org/linux-crypto/[email protected]

Herbert Xu (7):
crypto: api - Add helpers to manage request flags
crypto: acomp - Use request flag helpers and add acomp_request_flags
crypto: acomp - Add ACOMP_FBREQ_ON_STACK
crypto: iaa - Switch to ACOMP_FBREQ_ON_STACK
crypto: acomp - Add ACOMP_REQUEST_CLONE
ubifs: Use ACOMP_REQUEST_CLONE
crypto: acomp - Remove ACOMP_REQUEST_ALLOC

 crypto/acompress.c                         |  37 +--
 drivers/crypto/intel/iaa/iaa_crypto_main.c |   5 +-
 fs/ubifs/compress.c                        | 251 ++++++++++-----------
 include/crypto/acompress.h                 |  48 ++--
 include/crypto/algapi.h                    |   5 +
 include/crypto/internal/acompress.h        |  33 ++-
 include/linux/crypto.h                     |  24 ++
 7 files changed, 227 insertions(+), 176 deletions(-)
Signature · 1 line
2.39.5