]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
i40e: add 100Mb ethtool reporting
authorCatherine Sullivan <catherine.sullivan@intel.com>
Tue, 22 Dec 2015 22:25:14 +0000 (14:25 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 4 Feb 2016 06:52:28 +0000 (22:52 -0800)
Add some missing reporting/advertisement of 100Mb capability
for adapters that support it.

Change-ID: I8b8523fbdc99517bec29d90c71b3744db11542ac
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>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_main.c

index 8a3f93ddbcc3a4bf246284719af666a89bf3640e..45495911c5a4f5f221bac91ced1f284371880c4c 100644 (file)
@@ -411,6 +411,10 @@ static void i40e_get_settings_link_down(struct i40e_hw *hw,
                if (pf->hw.mac.type == I40E_MAC_X722) {
                        ecmd->supported |= SUPPORTED_100baseT_Full;
                        ecmd->advertising |= ADVERTISED_100baseT_Full;
+                       if (pf->flags & I40E_FLAG_100M_SGMII_CAPABLE) {
+                               ecmd->supported |= SUPPORTED_100baseT_Full;
+                               ecmd->advertising |= ADVERTISED_100baseT_Full;
+                       }
                }
        }
        if (phy_types & I40E_CAP_PHY_TYPE_XAUI ||
index 3e482bcd52878a20b58c52eb73669fdb48a1ae2c..320b0491abd95db56a7d71028fba3585acd20134 100644 (file)
@@ -8453,6 +8453,7 @@ static int i40e_sw_init(struct i40e_pf *pf)
                             I40E_FLAG_OUTER_UDP_CSUM_CAPABLE |
                             I40E_FLAG_WB_ON_ITR_CAPABLE |
                             I40E_FLAG_MULTIPLE_TCP_UDP_RSS_PCTYPE |
+                            I40E_FLAG_100M_SGMII_CAPABLE |
                             I40E_FLAG_GENEVE_OFFLOAD_CAPABLE;
        }
        pf->eeprom_version = 0xDEAD;