]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
octeontx2-af: Skip TM tree print for disabled SQs
authorAnshumali Gaur <agaur@marvell.com>
Tue, 18 Nov 2025 05:42:34 +0000 (11:12 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Nov 2025 04:06:22 +0000 (20:06 -0800)
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>
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c

index 7370812ece2ac5273be269e1e46531493e993ec3..15d3cb0b9da646b101b00d5b9fde01dea7c2cae1 100644 (file)
@@ -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;