Skip to contentSkip to conversation

octeontx2-af: Skip TM tree print for disabled SQs

PATCH In review Anshumali Gaur 2 participants 2 messages Nov 13, 2025 – Nov 17, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 octeontx2-af: Skip TM tree print for disabled SQs

Currently, the TM tree is printing all SQ topology including those which are not enabled, this results in redundant output for SQs which are not active. This patch adds a check in print_tm_tree() to skip printing the TM tree hierarchy if the SQ is not enabled.

Fixes b907194a5d5b ("octeontx2-af: Add debugfs support to dump NIX TM topology")
---
 drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c +3 -0
index 8375f18c8e07..7e3be0fb8cf6 100644
@@ -1651,6 +1651,9 @@ static void print_tm_tree(struct seq_file *m,
 	int blkaddr;
 	u64 cfg;
 
+	if (!sq_ctx->ena)
+		return;
+
 	blkaddr = nix_hw->blkaddr;
 	schq = sq_ctx->smq;
 
Signature · 1 line
2.25.1
reviewer
#1 lore raw
Quoted 7 lines · Anshumali Gaur

Currently, the TM tree is printing all SQ topology including those which are not enabled, this results in redundant output for SQs which are not active. This patch adds a check in print_tm_tree() to skip printing the TM tree hierarchy if the SQ is not enabled.

Fixes b907194a5d5b ("octeontx2-af: Add debugfs support to dump NIX TM topology")

Thanks Anshumali,

I agree that this is a nice change. But I'd lean towards this being net-next material rather than a bugfix for net.

This is because my understanding is that the change enhances the readability of debugfs output which, as the name implies, is for debugging.

...