ixgbe: limit setting speed to only one at a time for QSFP modules
authorEmil Tantilov <emil.s.tantilov@intel.com>
Fri, 30 Aug 2013 07:55:24 +0000 (07:55 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 13 Sep 2013 16:51:03 +0000 (09:51 -0700)
commited33ff66d8064e7b84459ad8ba49aad4cc67c269
tree8ba9125a2e53725687aa5b842b903095149cf897
parent91ffdc842b8ac0f96b5283b0f0b72927b7dfa8c7
ixgbe: limit setting speed to only one at a time for QSFP modules

QSFP+ modules do not support auto negotiation and should advertise only
one speed at a time.

This patch adds logic in ethtool to allow setting and reporting the
advertised speed at either 1Gbps or 10Gbps, but not both. Also limits
the speed set in ixgbe_sfp_link_config_subtask() to highest supported.
Previously the link was set to whatever the supported speeds were.

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
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c