aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
diff options
context:
space:
mode:
authorCatherine Sullivan <catherine.sullivan@intel.com>2015-12-09 15:50:25 -0800
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-02-03 20:17:15 -0800
commit48b1804ee3cdad7bf115666eb35edf12a734710f (patch)
tree2faaeb02dc89187ae98d60596b6b340d68275380 /drivers/net/ethernet/intel/i40e/i40e_ethtool.c
parenti40e/i40evf: Fix RSS rx-flow-hash configuration through ethtool (diff)
downloadlinux-dev-48b1804ee3cdad7bf115666eb35edf12a734710f.tar.xz
linux-dev-48b1804ee3cdad7bf115666eb35edf12a734710f.zip
i40e: Replace X722 mac check in ethtool get_settings
100M SGMII is only supported on X722. Replace the mac check with a feature flag check that is only set for the X722 device. Change-ID: I53452d9af6af8cd9dca8500215fbc6ce93418f52 Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
index c8b9dcae630a..252a9dd941d4 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
@@ -340,7 +340,7 @@ static void i40e_get_settings_link_up(struct i40e_hw *hw,
SUPPORTED_1000baseT_Full;
if (hw_link_info->requested_speeds & I40E_LINK_SPEED_1GB)
ecmd->advertising |= ADVERTISED_1000baseT_Full;
- if (pf->hw.mac.type == I40E_MAC_X722) {
+ if (pf->flags & I40E_FLAG_100M_SGMII_CAPABLE) {
ecmd->supported |= SUPPORTED_100baseT_Full;
if (hw_link_info->requested_speeds &
I40E_LINK_SPEED_100MB)