|
@@ -666,6 +666,13 @@ static int i40e_set_settings(struct net_device *netdev,
|
|
|
advertise & ADVERTISED_40000baseLR4_Full)
|
|
|
config.link_speed |= I40E_LINK_SPEED_40GB;
|
|
|
|
|
|
+ /* If speed didn't get set, set it to what it currently is.
|
|
|
+ * This is needed because if advertise is 0 (as it is when autoneg
|
|
|
+ * is disabled) then speed won't get set.
|
|
|
+ */
|
|
|
+ if (!config.link_speed)
|
|
|
+ config.link_speed = abilities.link_speed;
|
|
|
+
|
|
|
if (change || (abilities.link_speed != config.link_speed)) {
|
|
|
/* copy over the rest of the abilities */
|
|
|
config.phy_type = abilities.phy_type;
|