Skip to content

Commit b1e7f95

Browse files
Michael Chankuba-moo
authored andcommitted
bnxt_en: Add CQ ring dump to bnxt_dump_cp_sw_state()
On newer chips that use NQs and CQs, add the CQ ring dump to bnxt_dump_cp_sw_state() to make it more complete. Signed-off-by: Michael Chan <michael.chan@broadcom.com> Link: https://patch.msgid.link/20251126215648.1885936-5-michael.chan@broadcom.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent bba2a05 commit b1e7f95

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

  • drivers/net/ethernet/broadcom/bnxt

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14025,11 +14025,19 @@ static void bnxt_dump_rx_sw_state(struct bnxt_napi *bnapi)
1402514025

1402614026
static void bnxt_dump_cp_sw_state(struct bnxt_napi *bnapi)
1402714027
{
14028-
struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring;
14029-
int i = bnapi->index;
14028+
struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring, *cpr2;
14029+
int i = bnapi->index, j;
1403014030

1403114031
netdev_info(bnapi->bp->dev, "[%d]: cp{fw_ring: %d raw_cons: %x}\n",
1403214032
i, cpr->cp_ring_struct.fw_ring_id, cpr->cp_raw_cons);
14033+
for (j = 0; j < cpr->cp_ring_count; j++) {
14034+
cpr2 = &cpr->cp_ring_arr[j];
14035+
if (!cpr2->bnapi)
14036+
continue;
14037+
netdev_info(bnapi->bp->dev, "[%d.%d]: cp{fw_ring: %d raw_cons: %x}\n",
14038+
i, j, cpr2->cp_ring_struct.fw_ring_id,
14039+
cpr2->cp_raw_cons);
14040+
}
1403314041
}
1403414042

1403514043
static void bnxt_dbg_dump_states(struct bnxt *bp)

0 commit comments

Comments
 (0)