]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
stmmac: fix autoneg in set_pauseparam
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Thu, 12 May 2011 20:28:05 +0000 (20:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2011 20:12:07 +0000 (16:12 -0400)
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>
drivers/net/stmmac/stmmac_ethtool.c

index 9c05cf07a432ebf494f989f3f1a78dda534bf6b5..ae5213a8c4cde03d775891aa32ac8ef0c91467cc 100644 (file)
@@ -234,6 +234,7 @@ stmmac_set_pauseparam(struct net_device *netdev,
                new_pause |= FLOW_TX;
 
        priv->flow_ctrl = new_pause;
+       phy->autoneg = pause->autoneg;
 
        if (phy->autoneg) {
                if (netif_running(netdev))