ixgbe: fix LED blink logic to check for link
authorEmil Tantilov <emil.s.tantilov@intel.com>
Sat, 29 Oct 2011 06:54:55 +0000 (06:54 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 16 Nov 2011 12:21:51 +0000 (04:21 -0800)
commit8d233633bab501567841aaa2935963fb908c9523
treecec83c3ffcd9c7b0d0976ddef0e0abb19281da54
parentef456f858919ef7f40217ad8a5ed4e1e27c7ae6f
ixgbe: fix LED blink logic to check for link

Previously the driver would force link without checking whether the link was
already established. This caused some inconsistencies in the LED blink rate.

Do not force link if link is already up.

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_x540.c