diff mbox series

[2/2] common/cnxk: print NIX inline outbound CPT LF registers

Message ID 20220520052230.3680344-2-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/intel-Testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/github-robot: build success github build: passed
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Rahul Bhansali May 20, 2022, 5:22 a.m. UTC
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(+)

Comments

Ray Kinsella May 24, 2022, 3:13 p.m. UTC | #1
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>
Jerin Jacob June 15, 2022, 12:28 p.m. UTC | #2
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
diff mbox series

Patch

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;