octeontx2-af: Skip TM tree print for disabled SQs
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.
--- 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
@@ -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;
Signature · 1 line
2.25.1
Quoted 6 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.Signed-off-by Anshumali Gaur <[email protected]>
Thanks Anshumali,
As per my feedback on the 'net' variant of this patch, this looks good to me.
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Tue, 18 Nov 2025 11:12:34 +0530 you wrote:
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 <[email protected]>[...]
Here is the summary with links:
- [net-next] octeontx2-af: Skip TM tree print for disabled SQs
https://git.kernel.org/netdev/net-next/c/929ca3bceab8
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html