myri10ge: improve parity error detection and recovery
authorBrice Goglin <brice@myri.com>
Fri, 7 Aug 2009 10:44:22 +0000 (10:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2009 04:54:59 +0000 (21:54 -0700)
commitd02342151c51344034fbdeceff8effcb0a77c573
tree62d215202b8afe9e04f857d60185d40aa1a6c229
parentc9145a2df072f75d97592ddac1624baeb7bad195
myri10ge: improve parity error detection and recovery

Improve myri10ge parity error detection and recovery:
1) Don't restore PCI config space to a rebooted NIC until AFTER the
   host is quiescent.
2) Let myri10ge_close() know the NIC is dead, so it won't waste time
   waiting for a dead nic to respond to MXGEFW_CMD_ETHERNET_DOWN
3) When the NIC is quiet (link down, or otherwise idle link) use
   a pci config space read to detect a rebooted NIC.  Otherwise
   we might never notice that a NIC rebooted

Signed-off-by: Andrew Gallatin <gallatin@myri.com>
Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/myri10ge/myri10ge.c