Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2488f56d authored by Brice Goglin's avatar Brice Goglin Committed by David S. Miller
Browse files

myri10ge: fix rx_pause in myri10ge_set_pauseparam



Fix rx_pause management in myri10ge_set_pauseparam().

Signed-off-by: default avatarBrice Goglin <brice@myri.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 69298698
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1689,7 +1689,7 @@ myri10ge_set_pauseparam(struct net_device *netdev,
	if (pause->tx_pause != mgp->pause)
		return myri10ge_change_pause(mgp, pause->tx_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)
		return -EINVAL;
	return 0;