* [PATCH 1/2] common/cnxk: decrypt packet count register update
@ 2022-05-20 5:22 Rahul Bhansali
2022-05-20 5:22 ` [PATCH 2/2] common/cnxk: print NIX inline outbound CPT LF registers Rahul Bhansali
2022-06-15 12:28 ` [PATCH 1/2] common/cnxk: decrypt packet count register update Jerin Jacob
0 siblings, 2 replies; 5+ messages in thread
From: Rahul Bhansali @ 2022-05-20 5:22 UTC (permalink / raw)
To: dev, Nithin Dabilpuram, Kiran Kumar K, Sunil Kumar Kori,
Satha Rao
Cc: jerinj, Rahul Bhansali
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(-)
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] common/cnxk: print NIX inline outbound CPT LF registers
2022-05-20 5:22 [PATCH 1/2] common/cnxk: decrypt packet count register update Rahul Bhansali
@ 2022-05-20 5:22 ` Rahul Bhansali
2022-05-24 15:13 ` Ray Kinsella
2022-06-15 12:28 ` [PATCH 1/2] common/cnxk: decrypt packet count register update Jerin Jacob
1 sibling, 1 reply; 5+ messages in thread
From: Rahul Bhansali @ 2022-05-20 5:22 UTC (permalink / raw)
To: dev, Nithin Dabilpuram, Kiran Kumar K, Sunil Kumar Kori,
Satha Rao, Ray Kinsella
Cc: jerinj, Rahul Bhansali
This add the support to dump NIX inline outbound CPT LF
registers.
Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>
---
drivers/common/cnxk/roc_nix_debug.c | 14 ++++++++++++++
drivers/common/cnxk/roc_nix_inl.h | 1 +
drivers/common/cnxk/version.map | 1 +
3 files changed, 16 insertions(+)
diff --git a/drivers/common/cnxk/roc_nix_debug.c b/drivers/common/cnxk/roc_nix_debug.c
index e05e60daea..efac7e5b14 100644
--- a/drivers/common/cnxk/roc_nix_debug.c
+++ b/drivers/common/cnxk/roc_nix_debug.c
@@ -1272,3 +1272,17 @@ roc_nix_inl_dev_dump(struct roc_nix_inl_dev *roc_inl_dev)
for (i = 0; i < inl_dev->nb_rqs; i++)
roc_nix_rq_dump(&inl_dev->rqs[i]);
}
+
+void
+roc_nix_inl_outb_cpt_lfs_dump(struct roc_nix *roc_nix)
+{
+ struct nix *nix = roc_nix_to_nix_priv(roc_nix);
+ struct roc_cpt_lf *lf_base = nix->cpt_lf_base;
+ int i;
+
+ nix_dump("nix@%p", nix);
+ for (i = 0; i < nix->nb_cpt_lf; i++) {
+ nix_dump("NIX inline dev outbound CPT LFs:");
+ cpt_lf_print(&lf_base[i]);
+ }
+}
diff --git a/drivers/common/cnxk/roc_nix_inl.h b/drivers/common/cnxk/roc_nix_inl.h
index 7835ba364d..b1b4c5b471 100644
--- a/drivers/common/cnxk/roc_nix_inl.h
+++ b/drivers/common/cnxk/roc_nix_inl.h
@@ -200,5 +200,6 @@ int __roc_api roc_nix_inl_sa_sync(struct roc_nix *roc_nix, void *sa, bool inb,
enum roc_nix_inl_sa_sync_op op);
int __roc_api roc_nix_inl_ctx_write(struct roc_nix *roc_nix, void *sa_dptr,
void *sa_cptr, bool inb, uint16_t sa_len);
+void __roc_api roc_nix_inl_outb_cpt_lfs_dump(struct roc_nix *roc_nix);
#endif /* _ROC_NIX_INL_H_ */
diff --git a/drivers/common/cnxk/version.map b/drivers/common/cnxk/version.map
index a77f3f6e3c..1ba5b4f438 100644
--- a/drivers/common/cnxk/version.map
+++ b/drivers/common/cnxk/version.map
@@ -161,6 +161,7 @@ INTERNAL {
roc_nix_inl_ts_pkind_set;
roc_nix_inl_ctx_write;
roc_nix_inl_dev_pffunc_get;
+ roc_nix_inl_outb_cpt_lfs_dump;
roc_nix_cpt_ctx_cache_sync;
roc_nix_is_lbk;
roc_nix_is_pf;
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] common/cnxk: print NIX inline outbound CPT LF registers
2022-05-20 5:22 ` [PATCH 2/2] common/cnxk: print NIX inline outbound CPT LF registers Rahul Bhansali
@ 2022-05-24 15:13 ` Ray Kinsella
2022-06-15 12:28 ` Jerin Jacob
0 siblings, 1 reply; 5+ messages in thread
From: Ray Kinsella @ 2022-05-24 15:13 UTC (permalink / raw)
To: Rahul Bhansali
Cc: dev, Nithin Dabilpuram, Kiran Kumar K, Sunil Kumar Kori,
Satha Rao, jerinj
Rahul Bhansali <rbhansali@marvell.com> writes:
> This add the support to dump NIX inline outbound CPT LF
> registers.
>
> Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>
> ---
> drivers/common/cnxk/roc_nix_debug.c | 14 ++++++++++++++
> drivers/common/cnxk/roc_nix_inl.h | 1 +
> drivers/common/cnxk/version.map | 1 +
> 3 files changed, 16 insertions(+)
>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] common/cnxk: decrypt packet count register update
2022-05-20 5:22 [PATCH 1/2] common/cnxk: decrypt packet count register update Rahul Bhansali
2022-05-20 5:22 ` [PATCH 2/2] common/cnxk: print NIX inline outbound CPT LF registers Rahul Bhansali
@ 2022-06-15 12:28 ` Jerin Jacob
1 sibling, 0 replies; 5+ messages in thread
From: Jerin Jacob @ 2022-06-15 12:28 UTC (permalink / raw)
To: Rahul Bhansali
Cc: dpdk-dev, Nithin Dabilpuram, Kiran Kumar K, Sunil Kumar Kori,
Satha Rao, Jerin Jacob
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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] common/cnxk: print NIX inline outbound CPT LF registers
2022-05-24 15:13 ` Ray Kinsella
@ 2022-06-15 12:28 ` Jerin Jacob
0 siblings, 0 replies; 5+ messages in thread
From: Jerin Jacob @ 2022-06-15 12:28 UTC (permalink / raw)
To: Ray Kinsella
Cc: Rahul Bhansali, dpdk-dev, Nithin Dabilpuram, Kiran Kumar K,
Sunil Kumar Kori, Satha Rao, Jerin Jacob
On Tue, May 24, 2022 at 8:43 PM Ray Kinsella <mdr@ashroe.eu> wrote:
>
>
> Rahul Bhansali <rbhansali@marvell.com> writes:
>
> > This add the support to dump NIX inline outbound CPT LF
> > registers.
> >
> > Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>
> > ---
> > drivers/common/cnxk/roc_nix_debug.c | 14 ++++++++++++++
> > drivers/common/cnxk/roc_nix_inl.h | 1 +
> > drivers/common/cnxk/version.map | 1 +
> > 3 files changed, 16 insertions(+)
> >
>
> Acked-by: Ray Kinsella <mdr@ashroe.eu>
Applied to dpdk-next-net-mrvl/for-next-net. Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-06-15 12:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-20 5:22 [PATCH 1/2] common/cnxk: decrypt packet count register update Rahul Bhansali
2022-05-20 5:22 ` [PATCH 2/2] common/cnxk: print NIX inline outbound CPT LF registers Rahul Bhansali
2022-05-24 15:13 ` Ray Kinsella
2022-06-15 12:28 ` Jerin Jacob
2022-06-15 12:28 ` [PATCH 1/2] common/cnxk: decrypt packet count register update Jerin Jacob
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.