diff mbox series

[1/2] common/cnxk: decrypt packet count register update

Message ID 20220520052230.3680344-1-rbhansali@marvell.com (mailing list archive)
State Accepted
Delegated to: Jerin Jacob
Headers show
Series [1/2] common/cnxk: decrypt packet count register update | expand

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Rahul Bhansali May 20, 2022, 5:22 a.m. UTC
Corrects the CPT decrypt packet counter register.

Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>
---
 drivers/common/cnxk/roc_cpt_debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jerin Jacob June 15, 2022, 12:28 p.m. UTC | #1
On Fri, May 20, 2022 at 10:53 AM Rahul Bhansali <rbhansali@marvell.com> wrote:
>
> Corrects the CPT decrypt packet counter register.
>
> Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>

Updated the git commit as follows and applied to
dpdk-next-net-mrvl/for-next-net. Thanks

    common/cnxk: fix decrypt packet count register update

    Corrects the CPT decrypt packet counter register.

    Fixes: b1a22e5d4f ("common/cnxk: add CPT diagnostics")
    Cc: stable@dpdk.org

    Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>


> ---
>  drivers/common/cnxk/roc_cpt_debug.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/common/cnxk/roc_cpt_debug.c b/drivers/common/cnxk/roc_cpt_debug.c
> index 847d969268..be6ddb56aa 100644
> --- a/drivers/common/cnxk/roc_cpt_debug.c
> +++ b/drivers/common/cnxk/roc_cpt_debug.c
> @@ -200,7 +200,7 @@ cpt_lf_print(struct roc_cpt_lf *lf)
>         reg_val = plt_read64(lf->rbase + CPT_LF_CTX_DEC_BYTE_CNT);
>         plt_print("    Decrypted byte count:\t%" PRIu64, reg_val);
>
> -       reg_val = plt_read64(lf->rbase + CPT_LF_CTX_ENC_PKT_CNT);
> +       reg_val = plt_read64(lf->rbase + CPT_LF_CTX_DEC_PKT_CNT);
>         plt_print("    Decrypted packet count:\t%" PRIu64, reg_val);
>  }
>
> --
> 2.25.1
>
diff mbox series

Patch

diff --git a/drivers/common/cnxk/roc_cpt_debug.c b/drivers/common/cnxk/roc_cpt_debug.c
index 847d969268..be6ddb56aa 100644
--- a/drivers/common/cnxk/roc_cpt_debug.c
+++ b/drivers/common/cnxk/roc_cpt_debug.c
@@ -200,7 +200,7 @@  cpt_lf_print(struct roc_cpt_lf *lf)
 	reg_val = plt_read64(lf->rbase + CPT_LF_CTX_DEC_BYTE_CNT);
 	plt_print("    Decrypted byte count:\t%" PRIu64, reg_val);
 
-	reg_val = plt_read64(lf->rbase + CPT_LF_CTX_ENC_PKT_CNT);
+	reg_val = plt_read64(lf->rbase + CPT_LF_CTX_DEC_PKT_CNT);
 	plt_print("    Decrypted packet count:\t%" PRIu64, reg_val);
 }