RFC Introduce the bulk mode method when sending request to crypto layer
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 RFC Latest4 patches 7 repliesIn review
- v3 RFC4 patches 0 repliesSuperseded
- v2 RFC3 patches 14 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 RFC | 3 patches | 8 replies | Superseded |
Changes in v4 from the cover letter
- Some optimization for blk_bio_map_sg() function.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | block: Introduce blk_bio_map_sg() to map one bioblock/ include/ | +21 | 0 replies | |
| 2/4 | crypto: Introduce CRYPTO_ALG_BULK flaginclude/ include/ | +13 | 7 replies | |
| 3/4 | md: dm-crypt: Introduce the bulk mode method when sending requestdrivers/ | +158 | 0 replies | |
| 4/4 | crypto: Add the CRYPTO_ALG_BULK flag for ecb(aes) cipherdrivers/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [RFC v4 0/4] Introduce the bulk mode method when sending request to crypto layer
This patchset will check if the cipher can support bulk mode, then dm-crypt will handle different ways to send requests to crypto layer according to cipher mode. For bulk mode, we can use sg table to map the whole bio and send all scatterlists of one bio to crypto engine to encrypt or decrypt, which can improve the hardware engine's efficiency.
Changes since v3:
- Some optimization for blk_bio_map_sg() function.
Changes since v2:
- Add one cipher user with CRYPTO_ALG_BULK flag to support bulk mode.
- Add one atomic variable to avoid the sg table race.
Changes since v1:
- Refactor the blk_bio_map_sg() function to avoid duplicated code.
- Move the sg table allocation to crypt_ctr_cipher() function to avoid memory allocation in the IO path.
- Remove the crypt_sg_entry() function.
- Other optimization.
Baolin Wang (4):
block: Introduce blk_bio_map_sg() to map one bio
crypto: Introduce CRYPTO_ALG_BULK flag
md: dm-crypt: Introduce the bulk mode method when sending request
crypto: Add the CRYPTO_ALG_BULK flag for ecb(aes) cipher
block/blk-merge.c | 19 ++++++ drivers/crypto/omap-aes.c | 2 +- drivers/md/dm-crypt.c | 159 ++++++++++++++++++++++++++++++++++++++++++++- include/crypto/skcipher.h | 7 ++ include/linux/blkdev.h | 2 + include/linux/crypto.h | 6 ++ 6 files changed, 193 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.9.5