[1/2] common/octeontx2: sync cpt mailbox

Message ID 1596203513-21124-1-git-send-email-adwivedi@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series [1/2] common/octeontx2: sync cpt mailbox |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-intel-Performance success Performance Testing PASS
ci/Intel-compilation success Compilation OK
ci/iol-testing success Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS

Commit Message

Ankur Dwivedi July 31, 2020, 1:51 p.m. UTC
  From: Tejasree Kondoj <ktejasree@marvell.com>

This patch syncs the pmd mailbox with the cpt pf driver.

Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com>
Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
---
 drivers/common/octeontx2/otx2_mbox.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
  

Comments

Anoob Joseph Oct. 7, 2020, 6:44 a.m. UTC | #1
> -----Original Message-----
> From: Ankur Dwivedi <adwivedi@marvell.com>
> Sent: Friday, July 31, 2020 7:22 PM
> To: dev@dpdk.org
> Cc: akhil.goyal@nxp.com; Jerin Jacob Kollanukkaran <jerinj@marvell.com>;
> Nithin Kumar Dabilpuram <ndabilpuram@marvell.com>; Anoob Joseph
> <anoobj@marvell.com>; Tejasree Kondoj <ktejasree@marvell.com>; Ankur
> Dwivedi <adwivedi@marvell.com>
> Subject: [PATCH 1/2] common/octeontx2: sync cpt mailbox
> 
> From: Tejasree Kondoj <ktejasree@marvell.com>
> 
> This patch syncs the pmd mailbox with the cpt pf driver.
> 
> Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com>
> Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>

Series Acked-by: Anoob Joseph <anoobj@marvell.com>
  
Akhil Goyal Oct. 8, 2020, 9:16 p.m. UTC | #2
> From: Tejasree Kondoj <ktejasree@marvell.com>
> 
> This patch syncs the pmd mailbox with the cpt pf driver.
> 
> Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com>
> Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
> ---
>  drivers/common/octeontx2/otx2_mbox.h | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
Series applied to dpdk-next-crypto

Thanks.
  

Patch

diff --git a/drivers/common/octeontx2/otx2_mbox.h b/drivers/common/octeontx2/otx2_mbox.h
index 34b1d06..51e657a 100644
--- a/drivers/common/octeontx2/otx2_mbox.h
+++ b/drivers/common/octeontx2/otx2_mbox.h
@@ -1224,6 +1224,8 @@  struct cpt_rd_wr_reg_msg {
 	uint64_t __otx2_io *ret_val;
 	uint64_t __otx2_io val;
 	uint8_t __otx2_io is_write;
+	/* BLKADDR_CPT0/BLKADDR_CPT1 or 0 for BLKADDR_CPT0 */
+	uint8_t __otx2_io blkaddr;
 };
 
 struct cpt_set_crypto_grp_req_msg {
@@ -1235,11 +1237,14 @@  struct cpt_lf_alloc_req_msg {
 	struct mbox_msghdr hdr;
 	uint16_t __otx2_io nix_pf_func;
 	uint16_t __otx2_io sso_pf_func;
+	uint16_t __otx2_io eng_grpmask;
+	/* BLKADDR_CPT0/BLKADDR_CPT1 or 0 for BLKADDR_CPT0 */
+	uint8_t __otx2_io blkaddr;
 };
 
 struct cpt_lf_alloc_rsp_msg {
 	struct mbox_msghdr hdr;
-	uint8_t __otx2_io crypto_eng_grp;
+	uint16_t __otx2_io eng_grpmsk;
 };
 
 #define CPT_INLINE_INBOUND	0