Skip to content

event/octeontx2: add support for event crypto adapter

Ankur Dwivedi dpdk-dev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesIn review
  2. v33 patches 0 repliesSuperseded
  3. v23 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches0 repliesSuperseded

Changes in v4 from the cover letter

* In the "event/octeontx2: add crypto adapter datapath" patch, replaced rte_cio_wmb with rte_io_wmb, to resolve compilation error.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3crypto/octeontx2: move functions to helper filedrivers/crypto/octeontx2/otx2_cryptodev_ops.c drivers/crypto/octeontx2/otx2_cryptodev_ops_helper.h+75 -640 replies
2/3event/octeontx2: add crypto adapter frameworkdrivers/crypto/octeontx2/meson.build drivers/crypto/octeontx2/otx2_cryptodev_hw_access.h drivers/crypto/octeontx2/otx2_cryptodev_mbox.h +6 more+130 -10 replies
3/3event/octeontx2: add crypto adapter datapathdrivers/common/cpt/cpt_common.h drivers/crypto/octeontx2/otx2_cryptodev_ops.c drivers/crypto/octeontx2/rte_pmd_octeontx2_crypto_version.map +3 more+168 -280 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchPavan Nikhilesh
SeriesSeries-Acked-by
1/3
2/3
3/3

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

Read the v4 thread

Cover letter [dpdk-dev] [PATCH v4 0/3] event/octeontx2: add support for event crypto adapter

This patch series adds support for event crypto adapter in op new mode in the OCTEON TX2 event PMD. The functionality has been verified with event crypto adapter test application. Build with meson and ninja is supported.

v4:
* In the "event/octeontx2: add crypto adapter datapath" patch, replaced rte_cio_wmb with rte_io_wmb, to resolve compilation error.

v3:
* In the "event/octeontx2: add crypto adapter framework" patch, the following changes were made:
- Moved the crypto adapter files from crypto/octeontx2 to event/octeontx2 directory.
- Reused the security flag for crypto adapter implementation.

* In the "event/octeontx2: add crypto adapter datapath" patch, the following changes were made:
- In otx2_ssogws_get_work() and otx2_ssogws_dual_get_work(), the crypto adapter function is called if offload flag has security enabled. This is an additional check apart from checking event type.

v2:
* In the "event/octeontx2: add crypto adapter datapath" patch, right shifting the req pointer by 3 bits before submit during enqueue. Because of this the right shift during dequeue is not required.

Ankur Dwivedi (3):
crypto/octeontx2: move functions to helper file
event/octeontx2: add crypto adapter framework
event/octeontx2: add crypto adapter datapath

 drivers/common/cpt/cpt_common.h               |  1 +
 drivers/crypto/octeontx2/meson.build          |  1 +
 .../octeontx2/otx2_cryptodev_hw_access.h      | 12 +++
 .../crypto/octeontx2/otx2_cryptodev_mbox.h    |  2 +
 drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 96 ++++++++-----------
 .../octeontx2/otx2_cryptodev_ops_helper.h     | 74 ++++++++++++++
 drivers/crypto/octeontx2/otx2_cryptodev_qp.h  |  7 ++
 .../rte_pmd_octeontx2_crypto_version.map      | 10 ++
 drivers/event/octeontx2/meson.build           |  4 +-
 drivers/event/octeontx2/otx2_evdev.c          |  4 +
 drivers/event/octeontx2/otx2_evdev.h          | 11 +++
 .../event/octeontx2/otx2_evdev_crypto_adptr.c | 81 ++++++++++++++++
 .../octeontx2/otx2_evdev_crypto_adptr_dp.h    | 75 +++++++++++++++
 drivers/event/octeontx2/otx2_worker.h         | 28 ++++--
 drivers/event/octeontx2/otx2_worker_dual.h    | 44 +++++----
 15 files changed, 365 insertions(+), 85 deletions(-)
 create mode 100644 drivers/crypto/octeontx2/otx2_cryptodev_ops_helper.h
 create mode 100644 drivers/event/octeontx2/otx2_evdev_crypto_adptr.c
 create mode 100644 drivers/event/octeontx2/otx2_evdev_crypto_adptr_dp.h
Signature · 1 line
2.28.0