Skip to content

Commit

Permalink
alx: treat flow control correctly in alx_set_pauseparam()
Browse files Browse the repository at this point in the history
Even when alx_setup_speed_duplex() is called, we still
need to call alx_cfg_mac_flowcontrol() and set hw->flowctrl
if flow control changed.

This was a bug I accidentally introduced while simplifying
the original driver.

Reported-by: Ben Hutchings <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
jmberg authored and davem330 committed Jul 1, 2013
1 parent 0a6eac2 commit ef0cc4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/atheros/alx/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ static int alx_set_pauseparam(struct net_device *netdev,

if (reconfig_phy) {
err = alx_setup_speed_duplex(hw, hw->adv_cfg, fc);
return err;
if (err)
return err;
}

/* flow control on mac */
Expand Down

0 comments on commit ef0cc4b

Please sign in to comment.