Skip to content

Commit 400372e

Browse files
KAGA-KOKOZhengShunQian
authored andcommitted
net: fix amd-xgbe flow-control issue
[ Upstream commit 7f3fc7d ] 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent eb33141 commit 400372e

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
@@ -872,14 +872,14 @@ static void xgbe_phy_adjust_link(struct xgbe_prv_data *pdata)
872872

873873
if (pdata->tx_pause != pdata->phy.tx_pause) {
874874
new_state = 1;
875-
pdata->hw_if.config_tx_flow_control(pdata);
876875
pdata->tx_pause = pdata->phy.tx_pause;
876+
pdata->hw_if.config_tx_flow_control(pdata);
877877
}
878878

879879
if (pdata->rx_pause != pdata->phy.rx_pause) {
880880
new_state = 1;
881-
pdata->hw_if.config_rx_flow_control(pdata);
882881
pdata->rx_pause = pdata->phy.rx_pause;
882+
pdata->hw_if.config_rx_flow_control(pdata);
883883
}
884884

885885
/* Speed support */

0 commit comments

Comments
 (0)