]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Collect the device debug information during Tx timeout.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Thu, 24 May 2018 11:57:51 +0000 (04:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 02:52:52 +0000 (22:52 -0400)
commitd82869a523ac6f00e97cd28b1fb31faac9b3be1e
treec98c4bbdf444adcdb32855e882d2f8069c7a4635
parent499c68a2957c1d09c2f60ffa20cfdd822dd24c5b
bnx2x: Collect the device debug information during Tx timeout.

Tx-timeout mostly happens due to some issue in the device. In such cases,
debug dump would be helpful for identifying the cause of the issue.
This patch adds support to spill debug data during the Tx timeout. Here
bnx2x_panic_dump() API is used instead of bnx2x_panic(), since we still
want to allow the Tx-timeout recovery a chance to succeed.

Changes from previous version:
-------------------------------
v2: Fixed a coding error.

Please consider applying this to "net-next".

Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c