OSDN Git Service

bnxt_en: Retrieve coredump and crashdump size via FW command
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Fri, 29 Oct 2021 07:47:50 +0000 (03:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Oct 2021 11:13:05 +0000 (12:13 +0100)
commit80194db9f53bc8877468f96734133b7a8d28aa4c
treee79b586a4e7940243b71241db6d424edb04acf96
parent80f62ba9d53d40e7a71b79543026e8e20afe4ec1
bnxt_en: Retrieve coredump and crashdump size via FW command

Recent firmware provides coredump and crashdump size info via
DBG_QCFG command. Read the dump sizes from firmware, instead of
computing in the driver. This patch reduces the time taken
to collect the dump via ethtool.

Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c