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
@@ -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
Simon Horman
reviewerQuoted 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")Signed-off-by Anshumali Gaur <[email protected]>
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.
...