When enabling link autoneg, or changing any setting while link autoneg
is on, the flow control configuration is reset to the e1000_fc_default
mode.

Flow-control config should be changed through the .set_pauseparams()
ops, let the configuration as-is in the .set_ksettings() path.

Tested on i350-T4 cards.

Signed-off-by: Maxime Chevallier <[email protected]>
---
 drivers/net/ethernet/intel/igb/igb_ethtool.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c 
b/drivers/net/ethernet/intel/igb/igb_ethtool.c
index ccc7302dc7bd..cfa36eab8b0a 100644
--- a/drivers/net/ethernet/intel/igb/igb_ethtool.c
+++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c
@@ -322,8 +322,6 @@ static int igb_set_link_ksettings(struct net_device *netdev,
                                                     ADVERTISED_Autoneg;
                }
                advertising = hw->phy.autoneg_advertised;
-               if (adapter->fc_autoneg)
-                       hw->fc.requested_mode = e1000_fc_default;
        } else {
                u32 speed = cmd->base.speed;
                /* calling this overrides forced MDI setting */
-- 
2.56.1

Reply via email to