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.

Signed-off-by: Anshumali Gaur <agaur@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20251118054235.1599714-1-agaur@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Anshumali Gaur
2025-11-18 11:12:34 +05:30
committed by Jakub Kicinski
parent bc41fbbf6f
commit 929ca3bcea
@@ -1663,6 +1663,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;