ixgbe: fix link test when connected to 1Gbps link partner
authorEmil Tantilov <emil.s.tantilov@intel.com>
Wed, 10 Jul 2013 02:47:24 +0000 (02:47 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 29 Aug 2013 09:58:04 +0000 (02:58 -0700)
commit4ec375b1ec8ede2691a6511fff91a2b67fe73c3b
tree31a420738e344fc3875af488c7d015898013fdff
parentbd8a1b12907e314c3630c18da2bc0a07f5ae72e7
ixgbe: fix link test when connected to 1Gbps link partner

This patch is a partial reverse of:
commit dfcc4615f09c33454bc553567f7c7506cae60cb9
Author: Jacob Keller <jacob.e.keller@intel.com>
Date: Thu Nov 8 07:07:08 2012 +0000

  ixgbe: ethtool ixgbe_diag_test cleanup

Specifically forcing the laser before the link check can lead to
inconsistent results because it does not guarantee that the link will be
negotiated correctly. Such is the case when dual speed SFP+ module is
connected to a gigabit link partner.

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