stmmac: fix autoneg in set_pauseparam
This patch fixes a bug in the set_pauseparam function that didn't well manage the ANE field and returned broken values when use ethtool -A|-a. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
1334cb6082
commit
64c7f304b8
@@ -234,6 +234,7 @@ stmmac_set_pauseparam(struct net_device *netdev,
|
|||||||
new_pause |= FLOW_TX;
|
new_pause |= FLOW_TX;
|
||||||
|
|
||||||
priv->flow_ctrl = new_pause;
|
priv->flow_ctrl = new_pause;
|
||||||
|
phy->autoneg = pause->autoneg;
|
||||||
|
|
||||||
if (phy->autoneg) {
|
if (phy->autoneg) {
|
||||||
if (netif_running(netdev))
|
if (netif_running(netdev))
|
||||||
|
Reference in New Issue
Block a user