myri10ge: fix rx_pause in myri10ge_set_pauseparam
Fix rx_pause management in myri10ge_set_pauseparam(). Signed-off-by: Brice Goglin <brice@myri.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
69298698c2
commit
2488f56d36
1 changed files with 1 additions and 1 deletions
|
@ -1689,7 +1689,7 @@ myri10ge_set_pauseparam(struct net_device *netdev,
|
||||||
if (pause->tx_pause != mgp->pause)
|
if (pause->tx_pause != mgp->pause)
|
||||||
return myri10ge_change_pause(mgp, pause->tx_pause);
|
return myri10ge_change_pause(mgp, pause->tx_pause);
|
||||||
if (pause->rx_pause != mgp->pause)
|
if (pause->rx_pause != mgp->pause)
|
||||||
return myri10ge_change_pause(mgp, pause->tx_pause);
|
return myri10ge_change_pause(mgp, pause->rx_pause);
|
||||||
if (pause->autoneg != 0)
|
if (pause->autoneg != 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue