]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 14:12:14 +0000 (22:12 +0800)
commit67e6d8623acc68b59dbc10bda5b3ae6dd3a71450
treeaf78d409a945c463a6a8f56a83c17766cce10985
parent452ba08e4fddb5aa05cb58585fca305cc2d102b2
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.

(cherry picked from commit 7edebf9a6aac07e2ebb3901b60672293a7139ad0)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_main.c