Skip to content

Commit 7c492a2

Browse files
Michael Chandavem330
authored andcommitted
bnxt_en: Eliminate unintended link toggle during FW reset
If the flow control settings have been changed, a subsequent FW reset may cause the ethernet link to toggle unnecessarily. This link toggle will increase the down time by a few seconds. The problem is caused by bnxt_update_phy_setting() detecting a false mismatch in the flow control settings between the stored software settings and the current FW settings after the FW reset. This mismatch is caused by the AUTONEG bit added to link_info->req_flow_ctrl in an inconsistent way in bnxt_set_pauseparam() in autoneg mode. The AUTONEG bit should not be added to link_info->req_flow_ctrl. Reviewed-by: Colin Winegarden <[email protected]> Reviewed-by: Pavan Chebbi <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9a3bc77 commit 7c492a2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,9 +2109,7 @@ static int bnxt_set_pauseparam(struct net_device *dev,
21092109
}
21102110

21112111
link_info->autoneg |= BNXT_AUTONEG_FLOW_CTRL;
2112-
if (bp->hwrm_spec_code >= 0x10201)
2113-
link_info->req_flow_ctrl =
2114-
PORT_PHY_CFG_REQ_AUTO_PAUSE_AUTONEG_PAUSE;
2112+
link_info->req_flow_ctrl = 0;
21152113
} else {
21162114
/* when transition from auto pause to force pause,
21172115
* force a link change

0 commit comments

Comments
 (0)