[1/2] crypto/octeontx: pass sub event type in event

Message ID 1654853070-235-1-git-send-email-anoobj@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series [1/2] crypto/octeontx: pass sub event type in event |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Anoob Joseph June 10, 2022, 9:24 a.m. UTC
  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(+)
  

Comments

Akhil Goyal June 15, 2022, 4:02 p.m. UTC | #1
> 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.
  

Patch

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)