v1 - Illustrates abstracting completion event out to be a unique data
type. What is here still uses packet to serve as completion event
however application is no longer aware of the fact and simply converts
the received buffer to a completion context and uses accessor
functions from there on out.
Subsequent version of patch will (hopefully) demonstrate how
a synchronous only implementation can be achieved relatively
effeciently using the same API.
v2 - Added support for using thread local storage instead of an ODP buffer
for the completion event when operating synchronously. Code is not
performance oriented but meant to demonstrate how we might enable
more effecient synchronous support while allowing the application
to be implementation agnostic.
v3 - Whitespace errors.
v4 - Crypto operation can now immediatly return results to caller for
synchronous calls. Patch creates a 'result' structure that is
used to convey crypto operation results, and it does away with
accessor functions.
Robbie King (3):
Add completion event updates to odp_crypto.h
Add completion event updates to implementation
Update IPsec example app to use new completion event constructs
example/ipsec/odp_ipsec.c | 68 +++++++++-------
platform/linux-generic/include/api/odp_crypto.h | 93 +++++++++++-----------
.../linux-generic/include/odp_crypto_internal.h | 4 +-
platform/linux-generic/odp_crypto.c | 75 ++++++++---------
4 files changed, 125 insertions(+), 115 deletions(-)
--
1.9.1
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp