ice: Add additional CSR registers to ETHTOOL_GREGS
authorLukasz Czapnik <lukasz.czapnik@intel.com>
Thu, 27 Oct 2022 10:42:39 +0000 (03:42 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Oct 2022 04:57:29 +0000 (21:57 -0700)
commit637639cbfebb747406b9a57befc0b347057a3a24
treec3e837a9e92f3bd9d005d557b79e3342a75d0bec
parent006436316f4c77771a93bd672fea33c6c040c5d2
ice: Add additional CSR registers to ETHTOOL_GREGS

In the event of a Tx hang it can be useful to read a variety of hardware
registers to capture some state about why the transmit queue got stuck.

Extend the ETHTOOL_GREGS dump provided by the ice driver with several CSR
registers that provide such relevant information regarding the hardware Tx
state. This enables capturing relevant data to enable debugging such a Tx
hang.

Signed-off-by: Lukasz Czapnik <lukasz.czapnik@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Link: https://lore.kernel.org/r/20221027104239.1691549-1-jacob.e.keller@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_ethtool.c