提交 03a980d1 编写于 作者: A Ajit Khaparde 提交者: David S. Miller

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: NAjit Khaparde <ajitk@serverengines.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a95c2a3b
...@@ -319,7 +319,7 @@ be_get_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd) ...@@ -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, be_cmd_get_flow_control(&adapter->ctrl, &ecmd->tx_pause,
&ecmd->rx_pause); &ecmd->rx_pause);
ecmd->autoneg = AUTONEG_ENABLE; ecmd->autoneg = 0;
} }
static int static int
...@@ -328,7 +328,7 @@ be_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd) ...@@ -328,7 +328,7 @@ be_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd)
struct be_adapter *adapter = netdev_priv(netdev); struct be_adapter *adapter = netdev_priv(netdev);
int status; int status;
if (ecmd->autoneg != AUTONEG_ENABLE) if (ecmd->autoneg != 0)
return -EINVAL; return -EINVAL;
status = be_cmd_set_flow_control(&adapter->ctrl, ecmd->tx_pause, status = be_cmd_set_flow_control(&adapter->ctrl, ecmd->tx_pause,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册