]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: prevent link checks while resetting
authorEmil Tantilov <emil.s.tantilov@intel.com>
Sat, 27 Aug 2011 07:18:37 +0000 (07:18 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 5 Oct 2011 09:52:54 +0000 (02:52 -0700)
commitf2c20fbc1dc921ec0da16cc59a70e750d55fbbfd
treefd1ac9a28b8d3b1e9163b8d242ea7f50ee095e68
parentf0110b5d195d0cc8438619a6d93b6e5d5ed01bac
ixgbe: prevent link checks while resetting

It some situations the driver sets __IXGBE_RESETTING and then
__IXGBE_DOWN flags. It is possible a link check may sneak in
between.

This patch adds check for both flags.
The idea is to reduce register reads while the PHY is resetting.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.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