Skip to content

support enqueue & dequeue callbacks on cryptodev

Abhinandan Gujjar dpdk-dev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 8 repliesIn review
  2. v62 patches 12 repliesSuperseded
  3. v52 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v43 patches24 repliesSuperseded
v32 patches4 repliesSuperseded
v22 patches26 repliesSuperseded

Changes in v7 from the cover letter

-Fixed issues in documentation
-Generated patch set with updated system time -Updated to call dequeue callbacks after HW dequeue -Updated release notes for 21.02

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cryptodev: support enqueue and dequeue callback functionsconfig/rte_config.h doc/guides/prog_guide/cryptodev_lib.rst doc/guides/rel_notes/release_21_02.rst +4 more+702 -58 replies
2/2test: add testcase for crypto enqueue and dequeue callbackapp/test/test_cryptodev.c+242 -20 replies

Reviews trailers per patch

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

PatchKonstantin AnanyevAkhil Goyal
1/2A-b A-b
2/2A-b

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

Read the v7 thread

Cover letter [dpdk-dev] [PATCH v7 0/2] support enqueue & dequeue callbacks on cryptodev

In an eventdev world, multiple workers (with ordered queue) will be working on IPsec ESP processing. The ESP header's sequence number is unique and has to be sequentially incremented in an orderly manner. This rises a need for incrementing sequence number in crypto stage especially in event crypto adapter. By adding a user callback to cryptodev at enqueue burst, the user callback will get executed in the context of event crypto adapter. This helps the application to increment the ESP sequence number atomically and orderly manner. The user callback at the dequeue burst helps IPsec application to take care of ARW processing.

v6->v7:
-Fixed issues in documentation
-Generated patch set with updated system time -Updated to call dequeue callbacks after HW dequeue -Updated release notes for 21.02

v5->v6:
-Removed error code in remove callback APIs & cb init -Updated release notes & documentation

v4->v5:
-Added dequeue callback APIs
-Updated documentation
-Updated errno and return values
-Updated cleanup function

v3->v4:
-Move callback init and cleanup under dev_configure -Update with memory ordering
-Removed extra level of indirection
-Add documentation

v2->v3:
-Moved RCU under the cryptodev APIs
-RCU is maintained per queue-pair
-Changed name of few variables
-Updated callback test with negative cases
-Updated with required changes for meson

v1->v2:
-Moved callback related members to the end of cryptodev struct -Added support for RCU

Abhinandan Gujjar (2):
cryptodev: support enqueue and dequeue callback functions
test: add testcase for crypto enqueue and dequeue callback

 app/test/test_cryptodev.c               | 244 ++++++++++++++-
 config/rte_config.h                     |   1 +
 doc/guides/prog_guide/cryptodev_lib.rst |  44 +++
 doc/guides/rel_notes/release_21_02.rst  |   9 +
 lib/librte_cryptodev/meson.build        |   2 +-
 lib/librte_cryptodev/rte_cryptodev.c    | 398 +++++++++++++++++++++++-
 lib/librte_cryptodev/rte_cryptodev.h    | 246 ++++++++++++++-
 lib/librte_cryptodev/version.map        |   7 +
 8 files changed, 944 insertions(+), 7 deletions(-)
Signature · 1 line
2.25.1