Skip to contentSkip to conversation

be2net: fix for default setting of pause auto-negotiation

PATCH Applied Ajit Khaparde 2 participants 2 messages Apr 13, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 be2net: fix for default setting of pause auto-negotiation

Hi,
This patch fixes the default value of pause auto-negotiation supported by PCS.

Thanks
Ajit

----

drivers/net/benet/be_ethtool.c +2 -2
index 04f4b73..9592f22 100644
@@ -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,
maintainer Applied
#1 lore raw

From: Ajit Khaparde <[email protected]>
Date: Mon, 13 Apr 2009 13:47:06 +0530

Quoted 7 lines

This patch fixes the default value of pause auto-negotiation supported by PCS.

Thanks
Ajit

[ Why so many spaces? Please make your email more tidy, some
people try to read emails using small screens... ]

Quoted 3 lines

Applied, thanks.