Number of crypto sessions may be limited by HW. Application should be
able to destroy unused sessions.

Signed-off-by: Taras Kondratiuk <taras.kondrat...@linaro.org>
---
 include/odp/api/crypto.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/include/odp/api/crypto.h b/include/odp/api/crypto.h
index da035cb..bc6b27e 100644
--- a/include/odp/api/crypto.h
+++ b/include/odp/api/crypto.h
@@ -279,6 +279,19 @@ odp_crypto_session_create(odp_crypto_session_params_t 
*params,
                          enum odp_crypto_ses_create_err *status);
 
 /**
+ * Crypto session destroy
+ *
+ * Destroy an unused session. Result is undefined if session is being used
+ * (i.e. asynchronous operation is in progress).
+ *
+ * @param session           Session handle
+ *
+ * @retval 0 on success
+ * @retval <0 on failure
+ */
+int odp_crypto_session_destroy(odp_crypto_session_t session);
+
+/**
  * Return crypto completion handle that is associated with event
  *
  * Note: any invalid parameters will cause undefined behavior and may cause
-- 
1.9.1


_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to