]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: clean up ixgbe_get_settings ethtool function
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 8 Jun 2012 06:59:17 +0000 (06:59 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 20 Jun 2012 08:37:14 +0000 (01:37 -0700)
commit340c9a529604892d76001a1cf8acc2011d7f9157
tree4d7dbf4c475f10f409d1f3ba3430e573dad70b05
parentc49f3af2a7cde6ef8c54444ee694e222c3727736
ixgbe: clean up ixgbe_get_settings ethtool function

This patch cleans up the method used for determining the link speed of
devices. The old method re-wrote some logic already existing in a mac.ops
function which should be used instead. The result is much simpler to
understand and removes a strange double-check of logic, as well as reducing
code redundancy.

Signed-off-by: Jacob Keller <jacob.e.keller@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