OSDN Git Service

i40e: Fix the typo in adding 40GE KR4 mode
authorGrzegorz Siwik <grzegorz.siwik@intel.com>
Fri, 29 Mar 2019 22:08:35 +0000 (15:08 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 5 May 2019 00:16:47 +0000 (17:16 -0700)
This patch fixes the typo in I40E_CAP_PHY_TYPE mode link code.
It was fixed by changing 40000baseLR4_Full to 40000baseKR4_Full

Signed-off-by: Grzegorz Siwik <grzegorz.siwik@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

index 2c81afb..d440778 100644 (file)
@@ -549,9 +549,9 @@ static void i40e_phy_type_to_ethtool(struct i40e_pf *pf,
        }
        if (phy_types & I40E_CAP_PHY_TYPE_40GBASE_KR4) {
                ethtool_link_ksettings_add_link_mode(ks, supported,
-                                                    40000baseLR4_Full);
+                                                    40000baseKR4_Full);
                ethtool_link_ksettings_add_link_mode(ks, advertising,
-                                                    40000baseLR4_Full);
+                                                    40000baseKR4_Full);
        }
        if (phy_types & I40E_CAP_PHY_TYPE_20GBASE_KR2) {
                ethtool_link_ksettings_add_link_mode(ks, supported,