Skip to content

Commit

Permalink
be2net: fix for default setting of pause auto-negotiation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ajit Khaparde authored and David S. Miller committed Apr 13, 2009
1 parent a95c2a3 commit 03a980d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/benet/be_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 03a980d

Please sign in to comment.