[PATCH] e1000: prevent statistics from getting garbled during reset
authorLinas Vepstas <linas@austin.ibm.com>
Fri, 9 Jun 2006 05:19:44 +0000 (22:19 -0700)
committerJeff Garzik <jeff@garzik.org>
Sun, 11 Jun 2006 14:35:15 +0000 (10:35 -0400)
commit282f33c98618a3877043ec9dd5ac777c5e7c117d
tree2194a2b7b067f8718aa42486cc14f29062e19dae
parentb89fa8b6d738d71c3a9eff584177bb7de13f33b9
[PATCH] e1000: prevent statistics from getting garbled during reset

If a PCI bus error/fault triggers a PCI bus reset, attempts to get the
ethernet packet count statistics from the hardware will fail, returning
garbage data upstream.  This patch skips statistics data collection if the
PCI device is not on the bus.

This patch presumes that an earlier patch,
[PATCH] PCI Error Recovery: e1000 network device driver
has already been applied.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Cc: John Ronciak <john.ronciak@intel.com>
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/e1000/e1000_main.c