ixgbe: cleanup some register reads
authorEmil Tantilov <emil.s.tantilov@intel.com>
Tue, 26 Jul 2011 07:51:41 +0000 (07:51 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 17 Sep 2011 02:02:37 +0000 (19:02 -0700)
commit1a70db4b05fcaa976b625d47fba5e6cc2d89b0ae
treecf8c247c8820bc1b6ece7412eb68d12629215ed0
parent919e78a6b890bdcce8ca0fa699bd361c6f24dc94
ixgbe: cleanup some register reads

Remove duplicate inc of hwstats->ruc
Introduce separate loops for 8 and 16 register reads.
Consolidate mac checks under one case.
Make sure registers are cleared on read.

Reported-by: Jonathan Lynch <jonathan.lynch@thenowfactory.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
CC: Jonathan Lynch <jonathan.lynch@thenowfactory.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c