Skip to content

Commit f3567dd

Browse files
ddaskalakuba-moo
authored andcommitted
eth: fbnic: Fix debugfs output for BDQ's with page frags
The rings size_mask represents the number of pages, so we need to determine the number of page frags when dumping the descriptors. Fixes: df04373 ("eth fbnic: Add debugfs hooks for tx/rx rings") Signed-off-by: Dimitri Daskalakis <daskald@meta.com> Link: https://patch.msgid.link/20260324195123.3486219-3-dimitri.daskalakis1@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent b38c553 commit f3567dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static int fbnic_dbg_bdq_desc_seq_show(struct seq_file *s, void *v)
197197
return 0;
198198
}
199199

200-
for (i = 0; i <= ring->size_mask; i++) {
200+
for (i = 0; i < (ring->size_mask + 1) * FBNIC_BD_FRAG_COUNT; i++) {
201201
u64 bd = le64_to_cpu(ring->desc[i]);
202202

203203
seq_printf(s, "%04x %#04llx %#014llx\n", i,

0 commit comments

Comments
 (0)