OSDN Git Service

net: qede: Implement ndo_tx_timeout
authorDenis Bolotin <dbolotin@marvell.com>
Thu, 14 May 2020 09:57:24 +0000 (12:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 May 2020 20:25:46 +0000 (13:25 -0700)
commit5144e9f439d53460c38eb5c34dd67837ac512db1
tree3029ca9f424869cf5b93d9d20952a355ccca0061
parent7d9acd87bd55f401ada67b9c6a9c83a7e68c4ddf
net: qede: Implement ndo_tx_timeout

Upon tx timeout detection we do disable carrier and print TX queue
info on TX timeout. We then raise hw error condition and trigger
service task to handle this.

This handler will capture extra debug info and then optionally
trigger recovery procedure to try restore function.

Signed-off-by: Denis Bolotin <dbolotin@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede.h
drivers/net/ethernet/qlogic/qede/qede_main.c