DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] ipsec: use sym_session_opaque_data for RTE_SECURITY_TYPE_CPU_CRYPTO
@ 2023-09-25 20:11 Garry Marshall
  2023-10-30  7:22 ` [EXT] " Akhil Goyal
  2023-10-31  1:08 ` Konstantin Ananyev
  0 siblings, 2 replies; 6+ messages in thread
From: Garry Marshall @ 2023-09-25 20:11 UTC (permalink / raw)
  To: dev; +Cc: Garry Marshall, Konstantin Ananyev, Vladimir Medvedkin

ipsec related processing in dpdk makes use of the crypto.ses opaque
data pointer.  This patch updates rte_ipsec_session_prepare to set
ss->crypto.ses in the RTE_SECURITY_TYPE_CPU_CRYPTO case.

Signed-off-by: Garry Marshall <gazmarsh@meaningfulname.net>
---
 lib/ipsec/ses.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/ipsec/ses.c b/lib/ipsec/ses.c
index d9ab1e6d2b..29eb5ff6ca 100644
--- a/lib/ipsec/ses.c
+++ b/lib/ipsec/ses.c
@@ -44,7 +44,8 @@ rte_ipsec_session_prepare(struct rte_ipsec_session *ss)
 
 	ss->pkt_func = fp;
 
-	if (ss->type == RTE_SECURITY_ACTION_TYPE_NONE)
+	if (ss->type == RTE_SECURITY_ACTION_TYPE_NONE ||
+		ss->type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO)
 		rte_cryptodev_sym_session_opaque_data_set(ss->crypto.ses,
 			(uintptr_t)ss);
 	else
-- 
2.39.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-11-02  7:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-25 20:11 [PATCH] ipsec: use sym_session_opaque_data for RTE_SECURITY_TYPE_CPU_CRYPTO Garry Marshall
2023-10-30  7:22 ` [EXT] " Akhil Goyal
2023-10-31  1:08 ` Konstantin Ananyev
2023-10-31  9:36   ` Garry Marshall
2023-10-31 17:53     ` Konstantin Ananyev
2023-11-02  7:20       ` Garry Marshall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).