DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] crypto/octeontx: pass sub event type in event
@ 2022-06-10  9:24 Anoob Joseph
  2022-06-10  9:24 ` [PATCH 2/2] crypto/cnxk: " Anoob Joseph
  2022-06-15 16:02 ` [PATCH 1/2] crypto/octeontx: " Akhil Goyal
  0 siblings, 2 replies; 3+ messages in thread
From: Anoob Joseph @ 2022-06-10  9:24 UTC (permalink / raw)
  To: Akhil Goyal, Jerin Jacob
  Cc: Anoob Joseph, Archana Muniganti, Tejasree Kondoj, dev

Response info may have valid sub_event_type. Pass this to the event
generated by CPT.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Reviewed-by: Shijith Thotton <sthotton@marvell.com>
Reviewed-by: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
---
 drivers/crypto/octeontx/otx_cryptodev_ops.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/crypto/octeontx/otx_cryptodev_ops.c b/drivers/crypto/octeontx/otx_cryptodev_ops.c
index 914b17d..7aee67a 100644
--- a/drivers/crypto/octeontx/otx_cryptodev_ops.c
+++ b/drivers/crypto/octeontx/otx_cryptodev_ops.c
@@ -675,6 +675,7 @@ submit_request_to_sso(struct ssows *ws, uintptr_t req,
 	uint64_t add_work;
 
 	add_work = rsp_info->flow_id | (RTE_EVENT_TYPE_CRYPTODEV << 28) |
+		   (rsp_info->sub_event_type << 20) |
 		   ((uint64_t)(rsp_info->sched_type) << 32);
 
 	if (!rsp_info->sched_type)
-- 
2.7.4


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

* [PATCH 2/2] crypto/cnxk: pass sub event type in event
  2022-06-10  9:24 [PATCH 1/2] crypto/octeontx: pass sub event type in event Anoob Joseph
@ 2022-06-10  9:24 ` Anoob Joseph
  2022-06-15 16:02 ` [PATCH 1/2] crypto/octeontx: " Akhil Goyal
  1 sibling, 0 replies; 3+ messages in thread
From: Anoob Joseph @ 2022-06-10  9:24 UTC (permalink / raw)
  To: Akhil Goyal, Jerin Jacob
  Cc: Anoob Joseph, Archana Muniganti, Tejasree Kondoj, dev

Response info may have valid sub_event_type. Pass this to the event
generated by CPT.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Reviewed-by: Shijith Thotton <sthotton@marvell.com>
Reviewed-by: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
---
 drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 7 ++++---
 drivers/crypto/cnxk/cn9k_cryptodev_ops.c  | 7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c
index dd4c1d9..5ebfc57 100644
--- a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c
+++ b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c
@@ -285,9 +285,10 @@ cn10k_cpt_crypto_adapter_ev_mdata_set(struct rte_cryptodev *dev __rte_unused,
 
 	/* Prepare w2 */
 	rsp_info = &ec_mdata->response_info;
-	w2 = CNXK_CPT_INST_W2(
-		(RTE_EVENT_TYPE_CRYPTODEV << 28) | rsp_info->flow_id,
-		rsp_info->sched_type, rsp_info->queue_id, 0);
+	w2 = CNXK_CPT_INST_W2((RTE_EVENT_TYPE_CRYPTODEV << 28) |
+				      (rsp_info->sub_event_type << 20) |
+				      rsp_info->flow_id,
+			      rsp_info->sched_type, rsp_info->queue_id, 0);
 
 	/* Set meta according to session type */
 	if (op_type == RTE_CRYPTO_OP_TYPE_SYMMETRIC) {
diff --git a/drivers/crypto/cnxk/cn9k_cryptodev_ops.c b/drivers/crypto/cnxk/cn9k_cryptodev_ops.c
index ed25afe..066ec10 100644
--- a/drivers/crypto/cnxk/cn9k_cryptodev_ops.c
+++ b/drivers/crypto/cnxk/cn9k_cryptodev_ops.c
@@ -337,9 +337,10 @@ cn9k_cpt_crypto_adapter_ev_mdata_set(struct rte_cryptodev *dev __rte_unused,
 
 	/* Prepare w2 */
 	rsp_info = &ec_mdata->response_info;
-	w2 = CNXK_CPT_INST_W2(
-		(RTE_EVENT_TYPE_CRYPTODEV << 28) | rsp_info->flow_id,
-		rsp_info->sched_type, rsp_info->queue_id, 0);
+	w2 = CNXK_CPT_INST_W2((RTE_EVENT_TYPE_CRYPTODEV << 28) |
+				      (rsp_info->sub_event_type << 20) |
+				      rsp_info->flow_id,
+			      rsp_info->sched_type, rsp_info->queue_id, 0);
 
 	/* Set meta according to session type */
 	if (op_type == RTE_CRYPTO_OP_TYPE_SYMMETRIC) {
-- 
2.7.4


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

* RE: [PATCH 1/2] crypto/octeontx: pass sub event type in event
  2022-06-10  9:24 [PATCH 1/2] crypto/octeontx: pass sub event type in event Anoob Joseph
  2022-06-10  9:24 ` [PATCH 2/2] crypto/cnxk: " Anoob Joseph
@ 2022-06-15 16:02 ` Akhil Goyal
  1 sibling, 0 replies; 3+ messages in thread
From: Akhil Goyal @ 2022-06-15 16:02 UTC (permalink / raw)
  To: Anoob Joseph, Jerin Jacob Kollanukkaran
  Cc: Anoob Joseph, Archana Muniganti, Tejasree Kondoj, dev

> Subject: [PATCH 1/2] crypto/octeontx: pass sub event type in event
> 
> Response info may have valid sub_event_type. Pass this to the event
> generated by CPT.
> 
> Signed-off-by: Anoob Joseph <anoobj@marvell.com>
> Reviewed-by: Shijith Thotton <sthotton@marvell.com>
> Reviewed-by: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
Series applied to dpdk-next-crypto

Thanks.

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

end of thread, other threads:[~2022-06-15 16:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10  9:24 [PATCH 1/2] crypto/octeontx: pass sub event type in event Anoob Joseph
2022-06-10  9:24 ` [PATCH 2/2] crypto/cnxk: " Anoob Joseph
2022-06-15 16:02 ` [PATCH 1/2] crypto/octeontx: " Akhil Goyal

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).