diff options
author | Ajit Khaparde <ajitk@serverengines.com> | 2009-04-13 22:41:50 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-13 22:41:50 (GMT) |
commit | 03a980d162eb48a79ce21d47f45b9ec7d9db20e9 (patch) | |
tree | bba0e122832b236a662481e72705b3abeb0d01f3 /drivers/net/benet | |
parent | a95c2a3b9d6615ef6fad69fbb787a208ad6506b3 (diff) | |
download | linux-03a980d162eb48a79ce21d47f45b9ec7d9db20e9.tar.xz |
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')
-rw-r--r-- | drivers/net/benet/be_ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c index 04f4b73..9592f22 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, |