From: Fiona Trahe Date: Tue, 22 May 2018 10:36:51 +0000 (+0100) Subject: cryptodev: clarify when session can be cleared X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=423ca472597313b08197c80b1a668cbad7624b46;p=dpdk.git 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 --- 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