Skip to content

crypto/mlx5: optimize AES-GCM IPsec operation

Suanming Mou dpdk-dev 3 versions – Applied

Status from this message: Applied to dpdk-next-crypto

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied
  2. v22 patches 13 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2crypto/mlx5: optimize AES-GCM IPsec operationdoc/guides/cryptodevs/mlx5.rst doc/guides/rel_notes/release_24_07.rst drivers/crypto/mlx5/mlx5_crypto.c +2 more+266 -220 replies
2/2crypto/mlx5: add out of place mode for IPsec operationdoc/guides/cryptodevs/mlx5.rst drivers/crypto/mlx5/mlx5_crypto.c drivers/crypto/mlx5/mlx5_crypto_gcm.c+38 -100 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMatan Azrad
1/2A-b
2/2A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/2] crypto/mlx5: optimize AES-GCM IPsec operation

To optimize AES-GCM IPsec operation within crypto/mlx5, the DPDK API typically supplies AES_GCM AAD/Payload/Digest in separate locations, potentially disrupting their contiguous layout. In cases where the memory layout fails to meet hardware (HW) requirements, an UMR WQE is initiated ahead of the GCM's GGA WQE to establish a continuous AAD/Payload/Digest virtual memory space for the HW MMU.

For IPsec scenarios, where the memory layout consistently adheres to the fixed order of AAD/IV/Payload/Digest, directly shrinking memory for AAD proves more efficient than preparing a UMR WQE. To address this, a new devarg "crypto_mode" with mode "ipsec_opt" is introduced in the commit, offering an optimization hint specifically for IPsec cases. When enabled, the PMD copies AAD directly before Payload in the enqueue_burst function instead of employing the UMR WQE. Subsequently, in the dequeue_burst function, the overridden IV before Payload is restored from the GGA WQE. It's crucial for users to avoid utilizing the input mbuf data during processing.

v3: add limitation for non-contiguous inputs.
v2: rebase version

Suanming Mou (2):
crypto/mlx5: optimize AES-GCM IPsec operation crypto/mlx5: add out of place mode for IPsec operation

 doc/guides/cryptodevs/mlx5.rst         |  24 +++
 doc/guides/rel_notes/release_24_07.rst |   4 +
 drivers/crypto/mlx5/mlx5_crypto.c      |  22 ++-
 drivers/crypto/mlx5/mlx5_crypto.h      |  19 ++
 drivers/crypto/mlx5/mlx5_crypto_gcm.c  | 245 +++++++++++++++++++++++--
 5 files changed, 293 insertions(+), 21 deletions(-)
Signature · 1 line
2.34.1