aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/emulex
diff options
context:
space:
mode:
authorPadmanabh Ratnakar <padmanabh.ratnakar@emulex.com>2012-07-11 23:56:11 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-12 11:16:46 -0400
commitc871c5f29315aaf27acf6ceed7a69f9069049639 (patch)
tree11ed8e8bd8042ef29d897b3e231753f9777ca1d1 /drivers/net/ethernet/emulex
parent68c450426ae665653b06f62539e48727b696496f (diff)
be2net: Fix error while toggling autoneg of pause parameters
Autonegotiation of pause parameters is possible only on some PHYs. Ability of autoneg of pause parameters is reported by adapter. Autoneg of pause parameters cannot be changed from driver. Fix driver to give error when autoneg mode is toggled by user. Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex')
-rw-r--r--drivers/net/ethernet/emulex/benet/be_ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_ethtool.c b/drivers/net/ethernet/emulex/benet/be_ethtool.c
index 63e51d476900..e34be1c7ae8a 100644
--- a/drivers/net/ethernet/emulex/benet/be_ethtool.c
+++ b/drivers/net/ethernet/emulex/benet/be_ethtool.c
@@ -648,7 +648,7 @@ be_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd)
648 struct be_adapter *adapter = netdev_priv(netdev); 648 struct be_adapter *adapter = netdev_priv(netdev);
649 int status; 649 int status;
650 650
651 if (ecmd->autoneg != 0) 651 if (ecmd->autoneg != adapter->phy.fc_autoneg)
652 return -EINVAL; 652 return -EINVAL;
653 adapter->tx_fc = ecmd->tx_pause; 653 adapter->tx_fc = ecmd->tx_pause;
654 adapter->rx_fc = ecmd->rx_pause; 654 adapter->rx_fc = ecmd->rx_pause;