From 423ca472597313b08197c80b1a668cbad7624b46 Mon Sep 17 00:00:00 2001 From: Fiona Trahe Date: Tue, 22 May 2018 11:36:51 +0100 Subject: [PATCH] cryptodev: clarify when session can be cleared Session data can only be cleared once there are no inflight operations using the session. It is the application's responsability to make sure of this. Signed-off-by: Fiona Trahe Acked-by: Pablo de Lara --- lib/librte_cryptodev/rte_cryptodev.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 2fb65638d4..eb6c66fb3a 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -952,7 +952,9 @@ rte_cryptodev_sym_session_init(uint8_t dev_id, /** * 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 -- 2.20.1