]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: stop watchdog when in broken state
authorShannon Nelson <snelson@pensando.io>
Fri, 19 Mar 2021 00:48:09 +0000 (17:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Mar 2021 02:16:10 +0000 (19:16 -0700)
commit1600eba726cb441232167348b173f46857981dbb
treeaffa186ed9e98ea67457ddbc97a08d6177bd6a5e
parent54c6f43b7d6595eccbde920a2c1b45610508b362
ionic: stop watchdog when in broken state

Up to now we've been ignoring any error return from the
queue starting in the link status check, so we fix that here.
If the driver had to reset and couldn't get things running
properly again, for example after a Tx Timeout and the FW is
not responding to commands, don't let the link watchdog try
to restart the queues.  At this point the user can try to DOWN
and UP the device to clear the errors.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c
drivers/net/ethernet/pensando/ionic/ionic_lif.h