summaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_ethtool.c
diff options
context:
space:
mode:
authorAjit Khaparde <ajitk@serverengines.com>2009-04-13 15:41:50 -0700
committerDavid S. Miller <davem@davemloft.net>2009-04-13 15:41:50 -0700
commit03a980d162eb48a79ce21d47f45b9ec7d9db20e9 (patch)
treebba0e122832b236a662481e72705b3abeb0d01f3 /drivers/net/benet/be_ethtool.c
parenta95c2a3b9d6615ef6fad69fbb787a208ad6506b3 (diff)
downloadkernel-crypto-03a980d162eb48a79ce21d47f45b9ec7d9db20e9.tar.gz
kernel-crypto-03a980d162eb48a79ce21d47f45b9ec7d9db20e9.tar.xz
kernel-crypto-03a980d162eb48a79ce21d47f45b9ec7d9db20e9.zip
be2net: fix for default setting of pause auto-negotiation
This patch fixes the default value of pause auto-negotiation supported by PCS. Signed-off-by: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_ethtool.c')
-rw-r--r--drivers/net/benet/be_ethtool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c
index 04f4b73fa8d..9592f22e4c8 100644
--- a/drivers/net/benet/be_ethtool.c
+++ b/drivers/net/benet/be_ethtool.c
@@ -319,7 +319,7 @@ be_get_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd)
be_cmd_get_flow_control(&adapter->ctrl, &ecmd->tx_pause,
&ecmd->rx_pause);
- ecmd->autoneg = AUTONEG_ENABLE;
+ ecmd->autoneg = 0;
}
static int
@@ -328,7 +328,7 @@ be_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd)
struct be_adapter *adapter = netdev_priv(netdev);
int status;
- if (ecmd->autoneg != AUTONEG_ENABLE)
+ if (ecmd->autoneg != 0)
return -EINVAL;
status = be_cmd_set_flow_control(&adapter->ctrl, ecmd->tx_pause,