Skip to content

Commit 7f3fc7d

Browse files
KAGA-KOKOdavem330
authored andcommitted
net: fix amd-xgbe flow-control issue
If we enable or disable xgbe flow-control by ethtool , it does't work.Because the parameter is not properly assigned,so we need to adjust the assignment order of the parameters. Fixes: c1ce2f7 ("amd-xgbe: Fix flow control setting logic") Signed-off-by: tangpengpeng <[email protected]> Acked-by: Tom Lendacky <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 942a656 commit 7f3fc7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/amd/xgbe/xgbe-mdio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,14 +1111,14 @@ static void xgbe_phy_adjust_link(struct xgbe_prv_data *pdata)
11111111

11121112
if (pdata->tx_pause != pdata->phy.tx_pause) {
11131113
new_state = 1;
1114-
pdata->hw_if.config_tx_flow_control(pdata);
11151114
pdata->tx_pause = pdata->phy.tx_pause;
1115+
pdata->hw_if.config_tx_flow_control(pdata);
11161116
}
11171117

11181118
if (pdata->rx_pause != pdata->phy.rx_pause) {
11191119
new_state = 1;
1120-
pdata->hw_if.config_rx_flow_control(pdata);
11211120
pdata->rx_pause = pdata->phy.rx_pause;
1121+
pdata->hw_if.config_rx_flow_control(pdata);
11221122
}
11231123

11241124
/* Speed support */

0 commit comments

Comments
 (0)