[dpdk-dev] [PATCH v5 02/10] security: add opaque userdata pointer into security session

Konstantin Ananyev konstantin.ananyev at intel.com
Fri Dec 28 16:17:35 CET 2018


Add 'uint64_t opaque_data' inside struct rte_security_session.
That allows upper layer to easily associate some user defined
data with the session.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
Acked-by: Mohammad Abdul Awal <mohammad.abdul.awal at intel.com>
Acked-by: Declan Doherty <declan.doherty at intel.com>
Acked-by: Akhil Goyal <akhil.goyal at nxp.com>
---
 lib/librte_security/rte_security.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h
index 718147e00..c8e438fdd 100644
--- a/lib/librte_security/rte_security.h
+++ b/lib/librte_security/rte_security.h
@@ -317,6 +317,8 @@ struct rte_security_session_conf {
 struct rte_security_session {
 	void *sess_private_data;
 	/**< Private session material */
+	uint64_t opaque_data;
+	/**< Opaque user defined data */
 };
 
 /**
-- 
2.17.1



More information about the dev mailing list