[dpdk-dev] [PATCH] lib/crypto: clarify when it's ok to clear private session data
Fiona Trahe
fiona.trahe at intel.com
Tue May 22 12:36:51 CEST 2018
Signed-off-by: Fiona Trahe <fiona.trahe at intel.com>
---
lib/librte_cryptodev/rte_cryptodev.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h
index 2fb6563..eb6c66f 100644
--- a/lib/librte_cryptodev/rte_cryptodev.h
+++ b/lib/librte_cryptodev/rte_cryptodev.h
@@ -952,7 +952,9 @@ struct rte_cryptodev_sym_session *
/**
* Frees private data for the device id, based on its device type,
- * returning it to its mempool.
+ * returning it to its mempool. It is the application's responsibility
+ * to ensure that private session data is not cleared while there are
+ * still in-flight operations using it.
*
* @param dev_id ID of device that uses the session.
* @param sess Session containing the reference to the private data
--
1.7.0.7
More information about the dev
mailing list