mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Jakub Kicinski
parent
bba2a0577e
commit
b1e7f9566f
@@ -14025,11 +14025,19 @@ static void bnxt_dump_rx_sw_state(struct bnxt_napi *bnapi)
|
||||
|
||||
static void bnxt_dump_cp_sw_state(struct bnxt_napi *bnapi)
|
||||
{
|
||||
struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring;
|
||||
int i = bnapi->index;
|
||||
struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring, *cpr2;
|
||||
int i = bnapi->index, j;
|
||||
|
||||
netdev_info(bnapi->bp->dev, "[%d]: cp{fw_ring: %d raw_cons: %x}\n",
|
||||
i, cpr->cp_ring_struct.fw_ring_id, cpr->cp_raw_cons);
|
||||
for (j = 0; j < cpr->cp_ring_count; j++) {
|
||||
cpr2 = &cpr->cp_ring_arr[j];
|
||||
if (!cpr2->bnapi)
|
||||
continue;
|
||||
netdev_info(bnapi->bp->dev, "[%d.%d]: cp{fw_ring: %d raw_cons: %x}\n",
|
||||
i, j, cpr2->cp_ring_struct.fw_ring_id,
|
||||
cpr2->cp_raw_cons);
|
||||
}
|
||||
}
|
||||
|
||||
static void bnxt_dbg_dump_states(struct bnxt *bp)
|
||||
|
||||
Reference in New Issue
Block a user