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. 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 | 77 +++++++++++++---- .../linux-generic/include/odp_crypto_internal.h | 2 + platform/linux-generic/odp_crypto.c | 98 ++++++++++++++++++---- 4 files changed, 192 insertions(+), 53 deletions(-) -- 1.9.1 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org http://lists.linaro.org/mailman/listinfo/lng-odp