ixgbe: ethtool correctly identify autoneg setting
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 24 Oct 2012 07:26:02 +0000 (07:26 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 22 Nov 2012 09:39:43 +0000 (01:39 -0800)
commitdb2adc2df2c2f4250fead3e8418be2e387a5278f
tree9b6dbb1a55525bb68eff68a246619f7f578a6fd1
parentf3444d8b35e9a96e1be9c18a735358f43a9949b0
ixgbe: ethtool correctly identify autoneg setting

This patch enables ethtool to correctly identify flow control (pause
frame) auto negotiation, as well as disallow enabling it when it is not
supported. The ixgbe_device_supports_autoneg_fc function is exported and
used for this purpose.

There is also one minor cleanup of the device_supports_autoneg_fc by
removing an unnecessary return statement.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c