]> git.hungrycats.org Git - linux/commitdiff
i40e: Add advertising 10G LR mode
authorJakub Pawlak <jakub.pawlak@intel.com>
Fri, 20 Apr 2018 08:41:35 +0000 (01:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:47:57 +0000 (07:47 +0200)
[ Upstream commit 6ee4d32255865fc4b383355a8354603d60ab9f8a ]

The advertising 10G LR mode should be possible to set
but in the function i40e_set_link_ksettings() check for this
is missed. This patch adds check for 10000baseLR_Full
flag for 10G modes.

Signed-off-by: Jakub Pawlak <jakub.pawlak@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c

index b974482ff63036386db0874e0087af567b126ed7..c5e3d5f406ec705c5a10e8dd58199aacfd4e1193 100644 (file)
@@ -977,7 +977,9 @@ static int i40e_set_link_ksettings(struct net_device *netdev,
            ethtool_link_ksettings_test_link_mode(ks, advertising,
                                                  10000baseCR_Full) ||
            ethtool_link_ksettings_test_link_mode(ks, advertising,
-                                                 10000baseSR_Full))
+                                                 10000baseSR_Full) ||
+           ethtool_link_ksettings_test_link_mode(ks, advertising,
+                                                 10000baseLR_Full))
                config.link_speed |= I40E_LINK_SPEED_10GB;
        if (ethtool_link_ksettings_test_link_mode(ks, advertising,
                                                  20000baseKR2_Full))