Commit a27416bb authored by Matthew Vick's avatar Matthew Vick Committed by Jeff Kirsher
Browse files

igb: Force flow control off during reset when forcing speed.

During igb_reset(), we initiate a hardware reset which will clear our
flow control settings. For auto-negotiation, we re-negotiate them when
linking up again, but we need to force them off properly for the forced
speed case.
Signed-off-by: default avatarMatthew Vick <>
Tested-by: default avatarAaron Brown <>
Signed-off-by: default avatarJeff Kirsher <>
parent bdc125f7
......@@ -1715,6 +1715,13 @@ void igb_reset(struct igb_adapter *adapter)
if (hw->mac.ops.init_hw(hw))
dev_err(&pdev->dev, "Hardware Error\n");
* Flow control settings reset on hardware reset, so guarantee flow
* control is off when forcing speed.
if (!hw->mac.autoneg)
igb_init_dmac(adapter, pba);
if (!netif_running(adapter->netdev))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment