Skip to content

NX crypto driver reestructure

Leonidas Da Silva Barbosa linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Adding nx_copy_ctx and kmemcache to handle with crypto contextdrivers/crypto/nx/nx.c drivers/crypto/nx/nx.h+48 -50 replies
2/8Replacing spinlocks by nx_copy_ctx on NX-AES-CBCdrivers/crypto/nx/nx-aes-cbc.c+12 -80 replies
3/8Replacing spinlocks by nx_copy_ctx on NX-AES-CCMdrivers/crypto/nx/nx-aes-ccm.c+25 -170 replies
4/8Replacing spinlocks by nx_copy_ctx on NX-AES-CTRdrivers/crypto/nx/nx-aes-ctr.c+12 -80 replies
5/8Replacing spinlocks by nx_copy_ctx on NX-AES-ECBdrivers/crypto/nx/nx-aes-ecb.c+12 -80 replies
6/8Replacing spinlocks by nx_copy_ctx on NX-AES-GCMdrivers/crypto/nx/nx-aes-gcm.c+35 -290 replies
7/8Replacing spinlocks by nx_copy_ctx on NX-AES-XCBCdrivers/crypto/nx/nx-aes-xcbc.c+29 -220 replies
8/8Replacing spinlocks by nx_copy_ctx on NX-SHA256 and NX-SHA512drivers/crypto/nx/nx-sha256.c drivers/crypto/nx/nx-sha512.c+86 -541 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] NX crypto driver reestructure

This set of patches deals with the reescruture of NX driver replacing the use of spinlocks, that assure crypto context concurrency, by a copy of crypto ctx to another region of memory in order to be used by the current algorithm. As this region of memory tends to be used constantly also was added a kmemcache chunk avoiding the cost of constant allocations.

Leonidas Da Silva Barbosa (8):
Adding nx_copy_ctx and kmemcache to handle with crypto context Replacing spinlocks by nx_copy_ctx on NX-AES-CBC Replacing spinlocks by nx_copy_ctx on NX-AES-CCM Replacing spinlocks by nx_copy_ctx on NX-AES-CTR Replacing spinlocks by nx_copy_ctx on NX-AES-ECB Replacing spinlocks by nx_copy_ctx on NX-AES-GCM Replacing spinlocks by nx_copy_ctx on NX-AES-XCBC Replacing spinlocks by nx_copy_ctx on NX-SHA256 and NX-SHA512

 drivers/crypto/nx/nx-aes-cbc.c  |   20 +++++++----
 drivers/crypto/nx/nx-aes-ccm.c  |   42 ++++++++++++++---------
 drivers/crypto/nx/nx-aes-ctr.c  |   20 +++++++----
 drivers/crypto/nx/nx-aes-ecb.c  |   20 +++++++----
 drivers/crypto/nx/nx-aes-gcm.c  |   64 +++++++++++++++++++----------------
 drivers/crypto/nx/nx-aes-xcbc.c |   51 ++++++++++++++++------------
 drivers/crypto/nx/nx-sha256.c   |   70 ++++++++++++++++++++++++---------------
 drivers/crypto/nx/nx-sha512.c   |   70 ++++++++++++++++++++++++---------------
 drivers/crypto/nx/nx.c          |   45 ++++++++++++++++++++++++-
 drivers/crypto/nx/nx.h          |    8 +++--
 10 files changed, 259 insertions(+), 151 deletions(-)