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)
commite8d19370734f11e5880bb9ae2125f586e9e5d15c
tree4b12f7e5e4af51bec3d83ca59f9df8b4b746ced8
parent2c2f409f32d55d901b28b4e9a06c40e9d899ad25
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