]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb3: Fix EEH final recovery attempt
authorDivy Le Ray <divy@chelsio.com>
Fri, 17 Apr 2009 12:21:27 +0000 (12:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2009 09:07:27 +0000 (02:07 -0700)
commit5356f1e793ebd30395320162876e7ab1656afb66
tree4b12f7e5e4af51bec3d83ca59f9df8b4b746ced8
parent720cf0edb64da2d02b389f561160b4591c50d33c
cxgb3: Fix EEH final recovery attempt

EEH attempts to recover up 6 times.
The last attempt leaves all the ports and adapter down.hen
The driver is then unloaded, bringing the adapter down again
unconditionally. The unload will hang.
Check if the adapter is already down before trying to bring it down again.

Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/cxgb3_main.c