]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Return PCI_ERS_RESULT_DISCONNECT when bus is disabled
authorBreno Leitao <leitao@linux.vnet.ibm.com>
Wed, 6 May 2009 10:44:26 +0000 (10:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 May 2009 22:33:47 +0000 (15:33 -0700)
commite3c17bd8b4a24f3ee9cb4f7fc6e2fe051f0b0e18
tree5927da29daf6d57507a2b66129a66d752ae408a3
parenta7273a21bd30f2988ec9bec61242343c49d829dd
ixgbe: Return PCI_ERS_RESULT_DISCONNECT when bus is disabled

According to the "PCI Error Recovery" document, if after a recovery,
the bus is disabled, the error_detected function should return
PCI_ERS_RESULT_DISCONNECT. Actually ixgbe error_detected function is
always returning PCI_ERS_RESULT_NEED_RESET, even if the bus is in failure.
This patch just check if the bus is disabled and then returns
PCI_ERS_RESULT_DISCONNET.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c