public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH ethtool] Fix index calculation in RTTPT2C register dump loop
@ 2026-03-18  8:35 Alok Tiwari
  2026-03-23 19:10 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Alok Tiwari @ 2026-03-18  8:35 UTC (permalink / raw)
  To: kuba, netdev, mkubecek; +Cc: alok.a.tiwari, alok.a.tiwarilinux

Correct regs_buff indexing in ixgbe_dump_regs for RTTPT2C loop to use
regs_buff[865 + i] instead of regs_buff[865]

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
---
 ixgbe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ixgbe.c b/ixgbe.c
index 6d509c8..fd374a1 100644
--- a/ixgbe.c
+++ b/ixgbe.c
@@ -732,7 +732,7 @@ ixgbe_dump_regs(struct ethtool_drvinfo *info __maybe_unused,
 		for (i = 0; i < 8; i++)
 			fprintf(stdout,
 			"0x%05X: RTTPT2C%d    (Tx Packet Plane T2 Config %d)    0x%08X\n",
-			0x0CD20 + (4 * i), i, i, regs_buff[865]);
+			0x0CD20 + (4 * i), i, i, regs_buff[865 + i]);
 
 		if (mac_type < ixgbe_mac_x550)
 			for (i = 0; i < 8; i++)
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-23 19:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-18  8:35 [PATCH ethtool] Fix index calculation in RTTPT2C register dump loop Alok Tiwari
2026-03-23 19:10 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox