[dpdk-dev] [v6 0/2] support enqueue & dequeue callbacks on cryptodev
Abhinandan Gujjar
abhinandan.gujjar at intel.com
Thu Oct 29 00:10:09 CET 2020
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.
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 & dequeue callback functions
test: add testcase for crypto enqueue callback
app/test/test_cryptodev.c | 135 ++++++++++-
config/rte_config.h | 1 +
doc/guides/prog_guide/cryptodev_lib.rst | 47 ++++
doc/guides/rel_notes/release_20_11.rst | 9 +
lib/librte_cryptodev/meson.build | 2 +-
lib/librte_cryptodev/rte_cryptodev.c | 404 +++++++++++++++++++++++++++++++-
lib/librte_cryptodev/rte_cryptodev.h | 260 +++++++++++++++++++-
lib/librte_cryptodev/version.map | 4 +
8 files changed, 857 insertions(+), 5 deletions(-)
--
1.9.1
More information about the dev
mailing list