crypto/mlx5: support AES-GCM
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest9 patches 2 repliesIn review
- v39 patches 4 repliesSuperseded
- v2 posting 2/20 of 9 patches 4 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 1/2 | 9 patches | 2 replies | Superseded | |
| v1 RFC | 5 patches | 6 replies | Superseded |
Changes in v4 from the cover letter
- add missing feature cap in mlx5.ini
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | common/mlx5: export memory region lookup by addressdrivers/ drivers/ drivers/ | +6 | 0 replies | |
| 2/9 | crypto/mlx5: split AES-XTSdrivers/ drivers/ drivers/ +1 more | +667 | 0 replies | |
| 3/9 | crypto/mlx5: add AES-GCM query and initializationdrivers/ drivers/ drivers/ +4 more | +87 | 0 replies | |
| 4/9 | crypto/mlx5: add AES-GCM encryption keydrivers/ drivers/ drivers/ +1 more | +150 | 0 replies | |
| 5/9 | crypto/mlx5: add AES-GCM session configuredrivers/ drivers/ drivers/ | +91 | 0 replies | |
| 6/9 | common/mlx5: add WQE-based QP synchronous basicsdrivers/ drivers/ drivers/ | +20 | 0 replies | |
| 7/9 | crypto/mlx5: add queue pair setup for GCMdrivers/ drivers/ drivers/ +2 more | +270 | 0 replies | |
| 8/9 | crypto/mlx5: add enqueue and dequeue operationsdrivers/ drivers/ drivers/ +1 more | +604 | 0 replies | |
| 9/9 | crypto/mlx5: enable AES-GCM capabilitydoc/ doc/ doc/ +3 more | +136 | 0 replies |
Reviews trailers per patch
All 9 patches have a Reviewed-by or Acked-by.
| Patch | Matan Azrad |
|---|---|
| 1/9 | A-b |
| 2/9 | A-b |
| 3/9 | A-b |
| 4/9 | A-b |
| 5/9 | A-b |
| 6/9 | A-b |
| 7/9 | A-b |
| 8/9 | A-b |
| 9/9 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/9] crypto/mlx5: support AES-GCM
AES-GCM provides both authenticated encryption and the ability to check the integrity and authentication of additional authenticated data (AAD) that is sent in the clear.
The crypto operations are performed with crypto WQE. If the input buffers(AAD, mbuf, digest) are not contiguous and there is no enough headroom or tailroom for AAD or digest, as the requirement from FW, an UMR WQE is needed to generate contiguous address space for crypto WQE. The UMR WQE and crypto WQE are handled in two different QPs.
The QP for UMR operation contains two types of WQE, UMR and SEND_EN WQE. The WQEs are built dynamically according to the crypto operation buffer address. Crypto operation with non-contiguous buffers will have its own UMR WQE, while the operation with contiguous buffers doesn't need the UMR WQE. Once the all the operations WQE in the enqueue burst built finishes, if any UMR WQEs are built, additional SEND_EN WQE will be as the final WQE of the burst in the UMR QP. The purpose of that SEND_EN WQE is to trigger the crypto QP processing with the UMR ready input memory address space buffers.
The QP for crypto operations contains only the crypto WQE and the QP WQEs are built as fixed in QP setup. The QP processing is triggered by doorbell ring or the SEND_EN WQE from UMR QP.
v2:
- split XTS and GCM code to different file.
- add headroom and tailroom optimize.
v3:
- fix AES-GCM 128b key creation.
v4:
- add missing feature cap in mlx5.ini
Suanming Mou (9):
common/mlx5: export memory region lookup by address crypto/mlx5: split AES-XTS
crypto/mlx5: add AES-GCM query and initialization crypto/mlx5: add AES-GCM encryption key crypto/mlx5: add AES-GCM session configure common/mlx5: add WQE-based QP synchronous basics crypto/mlx5: add queue pair setup for GCM crypto/mlx5: add enqueue and dequeue operations crypto/mlx5: enable AES-GCM capability
doc/guides/cryptodevs/features/mlx5.ini | 2 + doc/guides/cryptodevs/mlx5.rst | 48 +- doc/guides/rel_notes/release_23_07.rst | 1 + drivers/common/mlx5/mlx5_common_mr.c | 2 +- drivers/common/mlx5/mlx5_common_mr.h | 5 + drivers/common/mlx5/mlx5_devx_cmds.c | 21 + drivers/common/mlx5/mlx5_devx_cmds.h | 16 + drivers/common/mlx5/mlx5_prm.h | 65 +- drivers/common/mlx5/version.map | 3 + drivers/crypto/mlx5/meson.build | 2 + drivers/crypto/mlx5/mlx5_crypto.c | 673 ++-------------- drivers/crypto/mlx5/mlx5_crypto.h | 101 ++- drivers/crypto/mlx5/mlx5_crypto_dek.c | 102 ++- drivers/crypto/mlx5/mlx5_crypto_gcm.c | 997 ++++++++++++++++++++++++ drivers/crypto/mlx5/mlx5_crypto_xts.c | 645 +++++++++++++++ 15 files changed, 2018 insertions(+), 665 deletions(-) create mode 100644 drivers/crypto/mlx5/mlx5_crypto_gcm.c create mode 100644 drivers/crypto/mlx5/mlx5_crypto_xts.c
Signature · 1 line
2.25.1